CHANGED: #1471 got rid of a crash.

--HG--
branch : gsoc2012-gui-editor
This commit is contained in:
dfighter1985 2012-08-19 02:20:57 +02:00
parent a0559ee680
commit 53eb29fef8

View file

@ -998,11 +998,14 @@ namespace NLGUI
std::vector<CInterfaceLink::CTargetInfo> 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;