From b47bce651e64ddeab722f599c0a682281b626c45 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/town_gui.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/town_gui.cpp') diff --git a/src/town_gui.cpp b/src/town_gui.cpp index ccc723e41..a9bae18a4 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -449,7 +449,6 @@ static void MakeSortedTownList() /* Create array for sorting */ _town_sort = ReallocT(_town_sort, GetMaxTownIndex() + 1); - if (_town_sort == NULL) error("Could not allocate memory for the town-sorting-list"); FOR_ALL_TOWNS(t) _town_sort[n++] = t; -- cgit v1.2.3-70-g09d2