mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixed a bug where menus would not work
This commit is contained in:
parent
9e99831fb2
commit
b4107e3523
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user