hedgewars/hwengine.pas
branchqmlfrontend
changeset 12860 e33bcb9d5e9c
parent 12855 1b2b84315d27
child 12876 b544bbbd0696
--- a/hedgewars/hwengine.pas	Sun Dec 24 16:56:22 2017 +0100
+++ b/hedgewars/hwengine.pas	Mon Dec 25 00:58:47 2017 +0100
@@ -580,14 +580,12 @@
 end;
 
 function EngineThread(p: pointer): Longint; cdecl; export;
-var e: TFLIBEvent;
 begin
     if GameType = gmtLandPreview then
         GenLandPreview()
     else Game();
 
-    e:= flibGameFinished;
-    sendUI(mtFlibEvent, @e, sizeof(e));
+    sendUI(mtGameFinished, nil, 0);
     EngineThread:= 0
 end;