修复录像播放结束时如果没有段位会报错
This commit is contained in:
@@ -245,8 +245,11 @@ function loadGame(mode,ifQuickPlay,ifNet)--Load a mode and go to game scene
|
|||||||
end
|
end
|
||||||
function gameOver()--Save record
|
function gameOver()--Save record
|
||||||
if GAME.replaying then
|
if GAME.replaying then
|
||||||
local R=GAME.curMode.getRank(PLAYERS[1])
|
local R=GAME.curMode.getRank
|
||||||
if R>0 then GAME.rank=R end
|
if R then
|
||||||
|
R=R(PLAYERS[1])
|
||||||
|
if R and R>0 then GAME.rank=R end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
trySave()
|
trySave()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user