hedgewars/uDebug.pas
changeset 13083 dd904dd9c587
parent 11537 bf86c6cb9341
child 13489 480ea997036b
--- a/hedgewars/uDebug.pas	Sun Mar 04 00:13:38 2018 +0100
+++ b/hedgewars/uDebug.pas	Mon Mar 05 16:16:32 2018 +0100
@@ -54,7 +54,10 @@
 function checkFails(Assert: boolean; Msg: shortstring; isFatal: boolean): boolean;
 begin
     if not Assert then
+        begin
+        lastConsoleLine:= Msg;
         OutError(Msg, false);
+        end;
 
     allOK:= allOK and (Assert or (not isFatal));
     checkFails:= (not Assert) and isFatal