1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-17 23:05:00 -05:00

Added another safety check for the heck of it.

This commit is contained in:
Niels 2010-10-04 17:10:05 +02:00
parent 931084900e
commit a7d6cd748b

View File

@ -288,7 +288,7 @@ end;
procedure ps_DebugLn(str : string); extdecl; procedure ps_DebugLn(str : string); extdecl;
begin begin
if CurrThread.Prop.WriteTimeStamp then if Assigned(CurrThread) and CurrThread.Prop.WriteTimeStamp then
str := format('[%s]: %s', [TimeToStr(TimeStampToDateTime(MSecsToTimeStamp(GetTickCount - CurrThread.StartTime))), str]); str := format('[%s]: %s', [TimeToStr(TimeStampToDateTime(MSecsToTimeStamp(GetTickCount - CurrThread.StartTime))), str]);
mDebugLn(str); mDebugLn(str);
end; end;