From 53eb29fef8734f66f512902f3e09ff7eecdab7df Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sun, 19 Aug 2012 02:20:57 +0200 Subject: [PATCH] CHANGED: #1471 got rid of a crash. --HG-- branch : gsoc2012-gui-editor --- code/nel/src/gui/interface_parser.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/nel/src/gui/interface_parser.cpp b/code/nel/src/gui/interface_parser.cpp index 2d4fc64c4..6a9563475 100644 --- a/code/nel/src/gui/interface_parser.cpp +++ b/code/nel/src/gui/interface_parser.cpp @@ -998,11 +998,14 @@ namespace NLGUI std::vector targets; ptr = (char*) xmlGetProp (cur, (xmlChar*)"target"); - std::string target = ptr; - if( ( ptr != NULL ) && !editorMode ) + std::string target; + if( ptr != NULL ) { - CInterfaceLink::splitLinkTargets(std::string((const char*)ptr), parentGroup, targets); + target = std::string( ptr ); + if( !editorMode ) + CInterfaceLink::splitLinkTargets(std::string((const char*)ptr), parentGroup, targets); } + // optional action handler std::string action; std::string params;