Skip to content

Commit

Permalink
fix(menu): spectate direction
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed May 25, 2023
1 parent 3e99d8d commit 9845192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource/menu/server/sv_spectate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RegisterNetEvent('txsv:req:spectate:cycle', function(currentTargetId, isNextPlay
nextTargetId = onlinePlayers[1]
--TODO: the correct thing would be to do a while to find the corect next/rev, based on value and not index
else
if isNext then
if isNextPlayer then
nextTargetId = onlinePlayers[currentTargetServerIndex + 1] or onlinePlayers[1]
else
nextTargetId = onlinePlayers[currentTargetServerIndex - 1] or onlinePlayers[#onlinePlayers]
Expand Down

0 comments on commit 9845192

Please sign in to comment.