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
Lukas Werling 2017-12-27 12:59:11 +01:00
parent 3583bfcbb6
commit 4b0ab0b8b1
1 changed files with 1 additions and 0 deletions

View File

@ -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;