Brian0255 / NDS-Ironmon-Tracker

An ironMON tracker for Nintendo DS Pokémon games.
GNU General Public License v3.0
39 stars 16 forks source link

Fix playtime file corruption if not-a-number #99

Closed UTDZac closed 1 year ago

UTDZac commented 1 year ago

Fixes the following error, which will permanently crash the Tracker on-startup. This fix ensures only real numbers are set to the time tracking variables used for playtime calculations.

NLua.Exceptions.LuaScriptException: ironmon_tracker/Tracker.lua:85: attempt to perform arithmetic on upvalue 'startSeconds' (a nil value)

Brian0255 commented 1 year ago

Thanks!