From 22351205bdd8657749fb7e3acb0e39f5821ab711 Mon Sep 17 00:00:00 2001 From: McDiod Date: Sun, 28 Apr 2019 16:35:37 +0200 Subject: [PATCH] fix linearSD fn_onSectorCaptured --- functions/linearSD/fn_onSectorCaptured.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/linearSD/fn_onSectorCaptured.sqf b/functions/linearSD/fn_onSectorCaptured.sqf index f6aad9c..c68b66f 100644 --- a/functions/linearSD/fn_onSectorCaptured.sqf +++ b/functions/linearSD/fn_onSectorCaptured.sqf @@ -5,6 +5,6 @@ params [["_sector",objNull],["_newOwner",sideUnknown],["_oldOwner",sideUnknown]] if (!isServer) exitWith {}; private _endMessage = format ["%1 captured!",_sector getVariable [QEGVAR(sectors,sectorName),"ERROR: Sector unknown."]]; - +private _sectorID = _sector getVariable [QEGVAR(sectors,sectorData),-2]; private _isLastSector = [_sectorID,_newOwner] call FUNC(isLastSector); [_endMessage,_newOwner,_isLastSector] call FUNC(endRound);