diff options
author | celestar <celestar@openttd.org> | 2006-03-18 08:00:27 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-18 08:00:27 +0000 |
commit | e54f1e1e2b5155c56a29ac32bc852507b04b9341 (patch) | |
tree | b33548d3513e245a98d65a5debc42aebfe66c8c7 /console_cmds.c | |
parent | 2bbcd41247d9312be1d0b685da0356ac809f2b23 (diff) | |
download | openttd-e54f1e1e2b5155c56a29ac32bc852507b04b9341.tar.xz |
(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
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; |