From f4b054e2da4dd93a915287cbad7b11971ff987fe Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 9 Mar 2024 11:47:21 +0100 Subject: [PATCH] Fix server freeze on cache destroy Missing default value when find_pos fail to find a city/position --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf index 061afffca..4c0a24989 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf @@ -22,7 +22,7 @@ Author: ---------------------------------------------------------------------------- */ params [ - ["_city_all", [], [[]]] + ["_city_all", values btc_city_all, [[]]] ]; private _useful = _city_all select {_x getVariable ["occupied", false] && {!(_x getVariable ["type", ""] in ["NameLocal", "Hill", "NameMarine"])}};