From dd7ae389f932491dbde5a78b4581cd40ca3990d4 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sat, 8 Feb 2020 19:43:42 -0600 Subject: [PATCH] Common - Fix canDig returning non-bool (#7516) --- addons/common/functions/fnc_canDig.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_canDig.sqf b/addons/common/functions/fnc_canDig.sqf index e96b44a478..a75f32b5d4 100644 --- a/addons/common/functions/fnc_canDig.sqf +++ b/addons/common/functions/fnc_canDig.sqf @@ -31,7 +31,7 @@ private _surfaceDust = getNumber (_config >> "dust"); TRACE_2("Surface",_surfaceType,_surfaceDust); if (isNumber (_config >> "ACE_canDig")) then { - getNumber (_config >> "ACE_canDig") // return + (getNumber (_config >> "ACE_canDig")) == 1 // return } else { !(_surfaceType in DIG_SURFACE_BLACKLIST) && {(_surfaceDust >= 0.1) || {_surfaceType in DIG_SURFACE_WHITELIST}} // return };