fix: train can be null
Dieser Commit ist enthalten in:
Ursprung
0d1806cee8
Commit
7516d39e39
@ -334,7 +334,8 @@ void BlockRailTile::destroying()
|
||||
{
|
||||
const auto self = shared_ptr<BlockRailTile>();
|
||||
for(const auto& status : *trains)
|
||||
status->train->blocks.removeInternal(status);
|
||||
if(status->train)
|
||||
status->train->blocks.removeInternal(status);
|
||||
|
||||
RailTile::destroying();
|
||||
}
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren