changeset 7910:4e0322d86051 draft

(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
author rubidium <rubidium@openttd.org>
date Sun, 18 Nov 2007 16:41:25 +0000
parents 4deac6dc5764
children 6a9e47d1d4dd
files src/group_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -40,7 +40,7 @@
 	const Group *g;
 	uint n = 0;
 
-	if (!(gl->l.flags & VL_REBUILD)) return;
+	if (!(gl->l.flags & VL_REBUILD) || GetGroupArraySize() == 0) return;
 
 	list = MallocT<const Group*>(GetGroupArraySize());
 	if (list == NULL) {