diff options
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c index a698df3e4..7b044b4d9 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -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; |