(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.

This commit is contained in:
rubidium 2007-11-18 16:41:25 +00:00
parent b1393d1169
commit dc81ea6454
1 changed files with 1 additions and 1 deletions

View File

@ -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) {