]> git.mxchange.org Git - flightgear.git/commitdiff
Fix #1851, wrong type in multiplayer messages
authorTorsten Dreyer <torsten@t3r.de>
Mon, 29 Feb 2016 21:29:32 +0000 (22:29 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Mon, 29 Feb 2016 21:29:32 +0000 (22:29 +0100)
See https://sourceforge.net/p/flightgear/codetickets/1851/
for details

src/MultiPlayer/multiplaymgr.cxx

index fda9a271567d4948e29d9065bb238ed446973bce..0883bc1bf891b623998db2f02745eb3e13a92c81 100644 (file)
@@ -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: