MODIFIED: no more action handler spam.

This commit is contained in:
dfighter1985 2013-03-12 07:16:16 +01:00
parent fb4875570e
commit 526da8ddf8

View file

@ -71,6 +71,9 @@ namespace NLGUI
/// return pointer to action handler or null if it doesn't exist /// return pointer to action handler or null if it doesn't exist
IActionHandler *getActionHandler(const std::string &name) const IActionHandler *getActionHandler(const std::string &name) const
{ {
if( name.empty() )
return NULL;
TFactoryMap::const_iterator it = FactoryMap.find(name); TFactoryMap::const_iterator it = FactoryMap.find(name);
if( it == FactoryMap.end() ) if( it == FactoryMap.end() )
{ {