mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18:26 +00:00
check if valid index of course :)
This commit is contained in:
parent
0cc406c962
commit
fbdfc7bbea
@ -2943,7 +2943,7 @@ void OpenReplayMenu(int client, bool canControlReplayUiFix=false)
|
||||
FormatEx(sDisplay, 64, "-10s");
|
||||
menu.AddItem("-10", sDisplay, canControlReplay ? ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
|
||||
|
||||
FormatEx(sDisplay, 64, "%T", "Menu_PlaybackSpeed", client, gA_BotInfo[index].fPlaybackSpeed);
|
||||
FormatEx(sDisplay, 64, "%T", "Menu_PlaybackSpeed", client, (index != -1) ? gA_BotInfo[index].fPlaybackSpeed : 1.0);
|
||||
menu.AddItem("speed", sDisplay, canControlReplay ? ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
|
||||
|
||||
FormatEx(sDisplay, 64, "%T", "Menu_RefreshReplay", client);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user