(svn r11275) -Fix: oldloader crashing when referencing a vehicle that is not yet loaded.
--- a/src/oldloader.cpp Tue Oct 16 00:35:59 2007 +0000
+++ b/src/oldloader.cpp Tue Oct 16 19:27:24 2007 +0000
@@ -1231,7 +1231,7 @@
default: v->spritenum >>= 1; break;
}
- if (_old_next_ptr != 0xFFFF) v->next = GetVehicle(_old_next_ptr);
+ if (_old_next_ptr != 0xFFFF) v->next = GetVehiclePoolSize() <= _old_next_ptr ? new (_old_next_ptr) InvalidVehicle() : GetVehicle(_old_next_ptr);
v->string_id = RemapOldStringID(_old_string_id);