Fix slection not clearing after setting ranks

This commit is contained in:
Cooldude2606 committed 2017-05-01 17:45:19 +01:00
1 parent 9041adfbfe
commit 95613d113c
1 file changed
+2
+2
View File
@@ -708,6 +708,8 @@ addButton('setRanks',
p=game.players[playerName] p=game.players[playerName]
if getRank(player).power < getRank(p).power and rank.power > getRank(player).power then if getRank(player).power < getRank(p).power and rank.power > getRank(player).power then
giveRank(p,rank,player) giveRank(p,rank,player)
clearSelection(player)
drawPlayerTable(player, frame.parent.parent, false, true, {})
else else
player.print('You can not edit '..p.name.."'s rank there rank is too high (or the rank you have slected is above you)") player.print('You can not edit '..p.name.."'s rank there rank is too high (or the rank you have slected is above you)")
end end