Changeset - r18458:7f3f65acbe7c
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-11-23 20:36:27
rubidium@openttd.org
(svn r23312) -Fix [FS#4849]: assertion could be triggered in case a station was removed just after a vehicle delivered cargo to it
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -3027,8 +3027,8 @@ void TriggerWatchedCargoCallbacks(Statio
 
 */
 
static bool StationHandleBigTick(BaseStation *st)
 
{
 
	if (!st->IsInUse() && ++st->delete_ctr >= 8) {
 
		delete st;
 
	if (!st->IsInUse()) {
 
		if (++st->delete_ctr >= 8) delete st;
 
		return false;
 
	}
 

	
0 comments (0 inline, 0 general)