mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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