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 | e3ca12a411639d3583815445328297312cc9f4ba (patch) | |
tree | 558962a15a46642d7349f00e34bf907b7e663946 | |
parent | 879cce2b8bda4c6b15953d287902034c43f2a88c (diff) | |
download | openttd-e3ca12a411639d3583815445328297312cc9f4ba.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(); |