From ed1e54bd84074412ea9f273b7cd86aed42d844ce Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 16 May 2009 23:44:36 +0000 Subject: (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() --- src/saveload/oldloader_sl.cpp | 2 +- src/saveload/vehicle_sl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/saveload') diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index b668828c0..0dce4a5ae 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -1362,7 +1362,7 @@ bool LoadOldVehicle(LoadgameState *ls, int num) } v->current_order.AssignOrder(UnpackOldOrder(_old_order)); - if (_old_next_ptr != 0xFFFF) v->next = GetVehiclePoolSize() <= _old_next_ptr ? new (_old_next_ptr) InvalidVehicle() : Vehicle::Get(_old_next_ptr); + if (_old_next_ptr != 0xFFFF) v->next = Vehicle::GetPoolSize() <= _old_next_ptr ? new (_old_next_ptr) InvalidVehicle() : Vehicle::Get(_old_next_ptr); if (_cargo_count != 0) { CargoPacket *cp = new CargoPacket((_cargo_source == 0xFF) ? INVALID_STATION : _cargo_source, _cargo_count); diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 695b2c831..2058bd819 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -208,7 +208,7 @@ void UpdateOldAircraft() */ static void CheckValidVehicles() { - uint total_engines = GetEnginePoolSize(); + uint total_engines = Engine::GetPoolSize(); EngineID first_engine[4] = { INVALID_ENGINE, INVALID_ENGINE, INVALID_ENGINE, INVALID_ENGINE }; Engine *e; -- cgit v1.2.3-70-g09d2