Small bug in Mission.lua

Post Reply
clausimu
Posts: 111
Joined: Tue Jan 06, 2015 8:31 pm

Small bug in Mission.lua

Post by clausimu »

I believe there is a small bug in the file "Mission.lua":

It is missing the declaration of the "Game" variable (Game = import("Game")).

This will only become obvious if you create a new mission (Mission.New()) and don't pass a valid location to the method. In that case the fallback "newMission.location = Game.system.path" is triggered (line 251), but the variable "Game" has not been declared, causing a game crash.
impaktor
Posts: 1008
Joined: Fri Dec 20, 2013 9:54 am
Location: Tellus
Contact:

Re: Small bug in Mission.lua

Post by impaktor »

Post Reply