Add game event flag for virtual train creation

This commit is contained in:
Jonathan G Rennison
2019-07-29 19:39:01 +01:00
parent 162fcb050e
commit 89a6cc3e03
3 changed files with 4 additions and 0 deletions

View File

@@ -5255,6 +5255,8 @@ Train* CmdBuildVirtualRailVehicle(EngineID eid, StringID &error)
return nullptr;
}
RegisterGameEvents(GEF_VIRT_TRAIN);
if (rvi->railveh_type == RAILVEH_WAGON) {
return CmdBuildVirtualRailWagon(e);
}