hedgewars/uDebug.pas
branchios-develop
changeset 13418 ba39a1d396c0
parent 13083 dd904dd9c587
child 13489 480ea997036b
--- a/hedgewars/uDebug.pas	Sun Jun 10 18:56:51 2018 +0200
+++ b/hedgewars/uDebug.pas	Sun Jun 10 19:12:26 2018 +0200
@@ -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