hedgewars/uScript.pas
changeset 14948 9d6a25239d00
parent 14775 b39da9cf7616
child 15038 d610d1c9fd55
--- a/hedgewars/uScript.pas	Mon May 13 20:25:32 2019 +0200
+++ b/hedgewars/uScript.pas	Mon May 13 20:26:07 2019 +0200
@@ -2037,6 +2037,7 @@
 function lc_endgame(L : Plua_State) : LongInt; Cdecl;
 begin
     L:= L; // avoid compiler hint
+    GameOver:= true;
     AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000);
     lc_endgame:= 0
 end;