Fix crash on invalid(?) fallback model id.
This commit is contained in:
parent
a419a80de4
commit
e425f74a7d
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue