mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 04:43:12 +00:00
(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
This commit is contained in:
parent
b1393d1169
commit
dc81ea6454
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user