TBTR: Add sanity check assertions
This commit is contained in:
@@ -1072,6 +1072,8 @@ void CallVehicleTicks()
|
||||
for (TemplateReplacementMap::iterator it = _vehicles_to_templatereplace.Begin(); it != _vehicles_to_templatereplace.End(); it++) {
|
||||
Train *t = it->first;
|
||||
|
||||
assert(!_vehicles_to_autoreplace.Contains(t));
|
||||
|
||||
/* Store the position of the effect as the vehicle pointer will become invalid later */
|
||||
int x = t->x_pos;
|
||||
int y = t->y_pos;
|
||||
|
Reference in New Issue
Block a user