Safeguard against the "plight_timer is nil" bug

it's not a bug that ever happens in real/normal gameplay but testers run
into it in debug runs sometimes and i'm not sure why
This commit is contained in:
mshirt 2017-08-30 23:57:01 -07:00
parent 3ec401e18d
commit 785ee492cc

View file

@ -737,6 +737,9 @@ def plight_start_timer
end
def plight_update_timer
if $game_oneshot.plight_timer == nil
plight_start_timer
end
Script.tmp_v1 = ((Time.now - $game_oneshot.plight_timer) / 60).to_i
end