diff options
-rw-r--r-- | src/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index 85c3c01d6..33a5e58a8 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -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(); |