Skip to content

Commit a376794

Browse files
committed
Fix debug cvar
#168
1 parent a41006c commit a376794

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)