mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r12068) -Fix(r12067): forgot a return
This commit is contained in:
parent
f29c748d4c
commit
5049ff8e8e
@ -1376,7 +1376,7 @@ static void *IntToReference(uint index, SLRefType rt)
|
||||
index++;
|
||||
if (index == INVALID_VEHICLE) return NULL;
|
||||
|
||||
if (_Vehicle_pool.AddBlockIfNeeded(index)) GetVehicle(index);
|
||||
if (_Vehicle_pool.AddBlockIfNeeded(index)) return GetVehicle(index);
|
||||
error("Vehicles: failed loading savegame: too many vehicles");
|
||||
|
||||
default: NOT_REACHED();
|
||||
|
Loading…
Reference in New Issue
Block a user