(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:
celestar
2006-03-18 08:00:27 +00:00
parent 2bbcd41247
commit e54f1e1e2b
3 changed files with 8 additions and 4 deletions

View File

@@ -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;