X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=4e347ef549b1aceaec2e9e27d9025e1956c8a20a;hb=67c6f2778c699f242412be03e2b874d14a7d10c9;hp=3b2ad4ca4d927e35096756e5ad702226b56664b2;hpb=f4fc3b435118e5d9e4085da37014436d2e063259;p=d2df-sdl.git diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 3b2ad4c..4e347ef 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -545,9 +545,9 @@ var procedure g_Map_ProfilersBegin (); begin if (profMapCollision = nil) then profMapCollision := TProfiler.Create('COLSOLID', g_profile_history_size); - profMapCollision.mainBegin(g_profile_collision); + if (profMapCollision <> nil) then profMapCollision.mainBegin(g_profile_collision); // create sections - if g_profile_collision then + if g_profile_collision and (profMapCollision <> nil) then begin profMapCollision.sectionBegin('*solids'); profMapCollision.sectionEnd();