Remove assert from UpdateSignalsOnSegment that globset is empty
Just do the right thing if it isn't empty instead of asserting
This commit is contained in:
@@ -822,9 +822,10 @@ void AddSideToSignalBuffer(TileIndex tile, DiagDirection side, Owner owner)
|
||||
*/
|
||||
SigSegState UpdateSignalsOnSegment(TileIndex tile, DiagDirection side, Owner owner)
|
||||
{
|
||||
assert(_globset.IsEmpty());
|
||||
UpdateSignalsInBufferIfOwnerNotAddable(owner);
|
||||
_globset.Add(tile, side);
|
||||
|
||||
_last_owner = INVALID_OWNER;
|
||||
return UpdateSignalsInBuffer(owner);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user