forked from mirror/OpenTTD
(svn r3939) -Fix: No longer assume that the number of slots is 2. It was not a problem up to now, but it's not The Right Thing (TM) to do either
This commit is contained in:
@@ -109,7 +109,8 @@ DEF_CONSOLE_CMD(ConResetSlots)
|
||||
}
|
||||
|
||||
FOR_ALL_ROADSTOPS(rs) {
|
||||
rs->slot[0] = rs->slot[1] = INVALID_VEHICLE;
|
||||
int i;
|
||||
for (i = 0; i < NUM_SLOTS; i++) rs->slot[i] = INVALID_VEHICLE;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user