1
0
mirror of https://github.com/moparisthebest/Simba synced 2025-03-02 18:31:45 -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;
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]);
mDebugLn(str);
end;