diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/FlightDeckBehavior.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/FlightDeckBehavior.cpp index 9fb2ce9f23f..dfa85e6d907 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/FlightDeckBehavior.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/FlightDeckBehavior.cpp @@ -1684,7 +1684,7 @@ void FlightDeckBehavior::xfer( Xfer *xfer ) xfer->xferUnsignedInt( &m_startedProductionFrame ); xfer->xferUnsignedInt( &m_nextAllowedProductionFrame ); xfer->xferObjectID( &m_designatedTarget ); - Int commandType; + Int commandType = (Int)m_designatedCommand; xfer->xferInt( &commandType ); m_designatedCommand = (AICommandType)commandType; xfer->xferCoord3D( &m_designatedPosition );