Skip to content

Commit

Permalink
make sure we wrap a shavit-mapchooser native in a check for the modul…
Browse files Browse the repository at this point in the history
…e being loaded
  • Loading branch information
rtldg committed Jan 14, 2022
1 parent 9adc56e commit 6c88f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/shavit-stats.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ public void ShowMapsCallback(Database db, DBResultSet results, const char[] erro

Menu menu = new Menu(MenuHandler_ShowMaps);

StringMap mapchooser_maps = gCV_UseMapchooser.BoolValue ? Shavit_GetMapsStringMap() : null;
StringMap mapchooser_maps = (gB_Mapchooser && gCV_UseMapchooser.BoolValue) ? Shavit_GetMapsStringMap() : null;

while(results.FetchRow())
{
Expand Down

0 comments on commit 6c88f45

Please sign in to comment.