16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 16:19:19 +02:00

Repair crash when changing cabs by AI when player is in cab (debugmode).

This commit is contained in:
firleju
2016-03-09 21:56:20 +01:00
parent 66c04b597e
commit 3cdaac6387

View File

@@ -4391,7 +4391,8 @@ bool TTrain::Update()
*/ */
//----------------- //-----------------
if ((!FreeFlyModeFlag) && (!DynamicObject->Mechanik->AIControllFlag)) if ((!FreeFlyModeFlag) &&
(!(DynamicObject->Mechanik ? DynamicObject->Mechanik->AIControllFlag : false)))
{ {
if (Console::Pressed(Global::Keys[k_Releaser])) // yB: odluzniacz caly if (Console::Pressed(Global::Keys[k_Releaser])) // yB: odluzniacz caly
// czas trzymany, warunki // czas trzymany, warunki