src/newgrf.cpp
changeset 8040 92c69fcd0d61
parent 7988 fa2cce262aa9
child 8074 6441201410d7
--- a/src/newgrf.cpp	Sat Dec 08 15:21:37 2007 +0000
+++ b/src/newgrf.cpp	Sat Dec 08 15:47:23 2007 +0000
@@ -5421,7 +5421,6 @@
 		/* No preloaded sprite to work with; allocate and read the
 		 * pseudo sprite content. */
 		buf = MallocT<byte>(num);
-		if (buf == NULL) error("DecodeSpecialSprite: Could not allocate memory");
 		FioReadBlock(buf, num);
 	} else {
 		/* Use the preloaded sprite data. */