summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-06 02:43:42 +0000
committerbelugas <belugas@openttd.org>2008-02-06 02:43:42 +0000
commit5049ff8e8ea754749e6d06c3e05e59e18e356e7a (patch)
tree558962a15a46642d7349f00e34bf907b7e663946
parentf29c748d4c0e2e3a3deed96fc045d128a9d7671b (diff)
downloadopenttd-5049ff8e8ea754749e6d06c3e05e59e18e356e7a.tar.xz
(svn r12068) -Fix(r12067): forgot a return
-rw-r--r--src/saveload.cpp2
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();