From bfda3c82f1913cf9a36ddda190ab55d04ba9e70c Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 8 Dec 2007 15:47:23 +0000 Subject: (svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions. --- src/newgrf.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 34b13b12b..a24d9aba0 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -5421,7 +5421,6 @@ static void DecodeSpecialSprite(uint num, GrfLoadingStage stage) /* No preloaded sprite to work with; allocate and read the * pseudo sprite content. */ buf = MallocT(num); - if (buf == NULL) error("DecodeSpecialSprite: Could not allocate memory"); FioReadBlock(buf, num); } else { /* Use the preloaded sprite data. */ -- cgit v1.2.3-54-g00ecf