diff options
author | belugas <belugas@openttd.org> | 2008-02-06 02:43:42 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-02-06 02:43:42 +0000 |
commit | 5049ff8e8ea754749e6d06c3e05e59e18e356e7a (patch) | |
tree | 558962a15a46642d7349f00e34bf907b7e663946 | |
parent | f29c748d4c0e2e3a3deed96fc045d128a9d7671b (diff) | |
download | openttd-5049ff8e8ea754749e6d06c3e05e59e18e356e7a.tar.xz |
(svn r12068) -Fix(r12067): forgot a return
-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(); |