Skip to content

Commit

Permalink
Destroyed menus on the the 'plugin_end(0)' and on menu close.
Browse files Browse the repository at this point in the history
  • Loading branch information
addonszz committed Jul 10, 2016
1 parent 6cf28c6 commit e6ffdd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion githooks/GALILEO_SMA_VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0-200
3.2.0-203
11 changes: 10 additions & 1 deletion scripting/galileo.sma
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* This version number must be synced with "githooks/GALILEO_VERSION.txt" for manual edition.
* To update them automatically, use: ./githooks/updateVersion.sh [major | minor | patch | build]
*/
new const PLUGIN_VERSION[] = "v3.2.0-200";
new const PLUGIN_VERSION[] = "v3.2.0-203";

/**
* Change this value from 0 to 1, to use the Whitelist feature as a Blacklist feature.
Expand Down Expand Up @@ -2908,7 +2908,10 @@ stock buildTheNominationsMenu( player_id )
// assume there'll be more than one match ( because we're lazy ) and starting building the match menu
if( g_generalUsePlayersMenuId[ player_id ] )
{
LOGGER( 4, "( buildTheNominationsMenu ) | menu_destroy, g_generalUsePlayersMenuId[%d]: %d", player_id, g_generalUsePlayersMenuId[ player_id ] );

menu_destroy( g_generalUsePlayersMenuId[ player_id ] );
g_generalUsePlayersMenuId[ player_id ] = 0;
}

clearMenuMapIndexForPlayers( player_id );
Expand Down Expand Up @@ -3203,6 +3206,12 @@ stock clearMenuMapIndexForPlayers( player_id )
{
ArrayClear( g_currentMenuMapIndexForPlayers[ player_id ] );
}

if( g_generalUsePlayersMenuId[ player_id ] )
{
menu_destroy( g_generalUsePlayersMenuId[ player_id ] );
g_generalUsePlayersMenuId[ player_id ] = 0;
}
}

/**
Expand Down

0 comments on commit e6ffdd7

Please sign in to comment.