mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-05 18:56:49 +01: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;
|
const Group *g;
|
||||||
uint n = 0;
|
uint n = 0;
|
||||||
|
|
||||||
if (!(gl->l.flags & VL_REBUILD)) return;
|
if (!(gl->l.flags & VL_REBUILD) || GetGroupArraySize() == 0) return;
|
||||||
|
|
||||||
list = MallocT<const Group*>(GetGroupArraySize());
|
list = MallocT<const Group*>(GetGroupArraySize());
|
||||||
if (list == NULL) {
|
if (list == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user