src/openttd.cpp
changeset 5609 dc6a58930ba4
parent 5587 167d9a91ef02
child 5619 9f5a7152403a
--- a/src/openttd.cpp	Thu Jan 11 15:30:35 2007 +0000
+++ b/src/openttd.cpp	Thu Jan 11 17:29:39 2007 +0000
@@ -120,7 +120,7 @@
 	fseek(in, 0, SEEK_END);
 	len = ftell(in);
 	fseek(in, 0, SEEK_SET);
-	if (len > maxsize || !MallocT(&mem, len + 1)) {
+	if (len > maxsize || (mem = MallocT<byte>(len + 1)) == NULL) {
 		fclose(in);
 		return NULL;
 	}