From d23b17f8a0eb6aed7b07b11c729fcb569567635c Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sat, 18 Aug 2012 00:27:52 +0200 Subject: [PATCH] CHANGED: #1471 Apparently when parsing variables, the parser changes the parsed entry, so better to re-read it from the XML-tree when caching. --HG-- branch : gsoc2012-gui-editor --- code/nel/src/gui/interface_parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/nel/src/gui/interface_parser.cpp b/code/nel/src/gui/interface_parser.cpp index fcd8a6c93..90b2c3953 100644 --- a/code/nel/src/gui/interface_parser.cpp +++ b/code/nel/src/gui/interface_parser.cpp @@ -1125,7 +1125,10 @@ namespace NLGUI { VariableData data; - data.entry = entry; + ptr = xmlGetProp( cur, BAD_CAST "entry" ); + if( ptr != NULL ) + data.entry = std::string( ptr ); + data.type = type; ptr = xmlGetProp( cur, BAD_CAST "value" );