Skip to content

Commit af9a8ec

Browse files
authored
Merge pull request #171 from Shark-vil/dev
Fix debug cvar
2 parents e8f263a + a376794 commit af9a8ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/entities/npc_dvbgn_police.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if CLIENT then
5252
end)
5353

5454
hook.Add('PostDrawTranslucentRenderables', 'BGN_DvPoliceDebugDrawPath', function()
55-
if not _cvar_bgn_debug:GetBool() then return end
55+
if not _cvar_bgn_debug or not _cvar_bgn_debug:GetBool() then return end
5656
for _, dv in _ipairs(_ents_FindByClass('npc_dvbgn_police')) do
5757
-- Отрисовка точек из WaypointList
5858
if _IsValid(dv) and dv.WaypointList then

0 commit comments

Comments
 (0)