summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-08 15:47:23 +0000
committerglx <glx@openttd.org>2007-12-08 15:47:23 +0000
commitbfda3c82f1913cf9a36ddda190ab55d04ba9e70c (patch)
treea45a623dcb65481ea9d84f6b9645584f075b7849 /src/industry_gui.cpp
parent593b49dc49a57a0b7e7056e4d93dc2f860bb31db (diff)
downloadopenttd-bfda3c82f1913cf9a36ddda190ab55d04ba9e70c.tar.xz
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 0b1383d5c..ef7df6bff 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -752,7 +752,6 @@ static void MakeSortedIndustryList()
/* Create array for sorting */
_industry_sort = ReallocT(_industry_sort, GetMaxIndustryIndex() + 1);
- if (_industry_sort == NULL) error("Could not allocate memory for the industry-sorting-list");
/* Don't attempt a sort if there are no industries */
if (GetNumIndustries() != 0) {