修复录像播放结束时如果没有段位会报错

This commit is contained in:
MrZ626
2021-06-28 13:36:43 +08:00
parent 3472ccc73d
commit 45ab91267f

View File

@@ -245,8 +245,11 @@ function loadGame(mode,ifQuickPlay,ifNet)--Load a mode and go to game scene
end
function gameOver()--Save record
if GAME.replaying then
local R=GAME.curMode.getRank(PLAYERS[1])
if R>0 then GAME.rank=R end
local R=GAME.curMode.getRank
if R then
R=R(PLAYERS[1])
if R and R>0 then GAME.rank=R end
end
end
trySave()