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);