mirror of https://github.com/OpenTTD/OpenTTD
(svn r22087) -Fix: When deleting towns, only relocate objects during DC_EXEC.
parent
a5b9858a36
commit
c36a22ba72
|
@ -2419,7 +2419,7 @@ CommandCost CmdDeleteTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||||
try_clear = true;
|
try_clear = true;
|
||||||
} else {
|
} else {
|
||||||
/* Tell to find a new town. */
|
/* Tell to find a new town. */
|
||||||
o->town = NULL;
|
if (flags & DC_EXEC) o->town = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue