diff options
author | rubidium <rubidium@openttd.org> | 2007-11-18 16:41:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-18 16:41:25 +0000 |
commit | 67bbd8f7ab94407684bd2a8de1c610710fb68528 (patch) | |
tree | 5a4786de8c25f87bc84636f27ce6440d4af2200b /src | |
parent | cea3cf285778829c21317ecd3fb1de16d876067d (diff) | |
download | openttd-67bbd8f7ab94407684bd2a8de1c610710fb68528.tar.xz |
(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
Diffstat (limited to 'src')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 1ecb8172b..807039133 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -40,7 +40,7 @@ static void BuildGroupList(grouplist_d* gl, PlayerID owner, VehicleType vehicle_ 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) { |