From 4f8cbbb204bd9e28aeed71de8ae0b88019981124 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Mon, 29 Feb 2016 22:29:32 +0100 Subject: [PATCH] Fix #1851, wrong type in multiplayer messages See https://sourceforge.net/p/flightgear/codetickets/1851/ for details --- src/MultiPlayer/multiplaymgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5