fixed a menu bug at19364

This commit is contained in:
Borja Ferrer
2005-11-13 20:33:30 +00:00
parent c5761610b8
commit 2ac00713a7
5 changed files with 39 additions and 3 deletions

View File

@@ -351,9 +351,13 @@ static cell AMX_NATIVE_CALL menu_items(AMX *amx, cell *params)
static cell AMX_NATIVE_CALL menu_display(AMX *amx, cell *params)
{
GETMENU(params[2]);
int player = params[1];
int page = params[3];
CPlayer* pPlayer = GET_PLAYER_POINTER_I(player);
// This will set the expire time of the menu to infinite
pPlayer->menuexpire = INFINITE;
return pMenu->Display(player, page);
}