1
0
Fork 0

Fix crash on invalid(?) fallback model id.

This commit is contained in:
Michael Danilov 2018-08-25 18:43:05 +05:00
parent a419a80de4
commit e425f74a7d

View file

@ -2225,7 +2225,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
break;
}
}
if (pData)
if (pData) {
motionInfo.properties.push_back(pData);
// Special case - we need the /sim/model/fallback-model-index to create
@ -2235,6 +2235,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
SG_LOG(SG_NETWORK, SG_DEBUG, "Found Fallback model index in message " << fallback_model_index);
}
}
}
else
{
// We failed to find the property. We'll try the next packet immediately.