From 785ee492ccceebbf94c765fe5cac49b1bba68682 Mon Sep 17 00:00:00 2001 From: mshirt Date: Wed, 30 Aug 2017 23:57:01 -0700 Subject: [PATCH] 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 --- scripts/Script.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Script.rb b/scripts/Script.rb index 6f6565f..9ac70bf 100644 --- a/scripts/Script.rb +++ b/scripts/Script.rb @@ -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