Fixed a bug where menus would not work

This commit is contained in:
Pavol Marko 2004-05-29 12:21:57 +00:00
parent 9e99831fb2
commit b4107e3523

View File

@ -62,7 +62,7 @@ int MenuMngr::registerMenuId(const char* n, AMX* a )
int id = findMenuId( n, a );
if (id) return id;
headid = new MenuIdEle( n, a , headid );
if (headid)
if (!headid)
return 0; // :TODO: Better error report
return headid->id;
}