From: Torsten Dreyer Date: Mon, 29 Feb 2016 21:29:32 +0000 (+0100) Subject: Fix #1851, wrong type in multiplayer messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f8cbbb204bd9e28aeed71de8ae0b88019981124;p=flightgear.git Fix #1851, wrong type in multiplayer messages See https://sourceforge.net/p/flightgear/codetickets/1851/ for details --- diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index fda9a2715..0883bc1bf 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1168,7 +1168,7 @@ FGMultiplayMgr::Send() for (it = mPropertyMap.begin(); it != mPropertyMap.end(); ++it) { FGPropertyData* pData = new FGPropertyData; pData->id = it->first; - pData->type = it->second->getType(); + pData->type = findProperty(pData->id)->type; switch (pData->type) { case props::INT: