forked from Mirrors/openclonk
Skylands: Fix script error
OnPlaneFinished deletes the calling object. ERROR: can't access local variables without this by: SetProgress(5) (Missions.ocf/Skylands.ocs/Plane.ocd/Script.c:37) by: AddPart() (Missions.ocf/Skylands.ocs/Plane.ocd/Script.c:57) by: Timer() (Missions.ocf/Skylands.ocs/Plane.ocd/Script.c:47) by: FxIntScheduleCallTimer(0,effect {Function = "Timer", Name = "IntScheduleCall", NoStop = true, Pars = [], Repeats = -10794}) (System.ocg/Schedule.c:95)install-platforms
parent
3583bfcbb6
commit
4b0ab0b8b1
|
@ -33,6 +33,7 @@ func SetProgress(int new_progress)
|
|||
SetGraphics();
|
||||
SetGraphics(nil, nil, GFX_Overlay, GFXOV_MODE_Base);
|
||||
GameCall("OnPlaneFinished", this);
|
||||
return true;
|
||||
}
|
||||
next_part = parts[progress];
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue