Page MenuHomeFeedback Tracker

BIS_fnc_EGSpectator/"IsLocationIdUsed" does not work
New, NormalPublic

Description

BIS_fnc_EGSpectator offers a function "IsLocationIdUsed", but the code does ignore input.

	case "IsLocationIdUsed" :
	{
		private _locations = missionNamespace getVariable [VAR_LOCATIONS, []];
		private _index = -1;

		{
			if (_x select 0 == _id) exitWith
			{
				_index = _forEachIndex;
			};
		} forEach _locations;

_id is not defined, and should probably be

		private _id = _params select 0;

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Varanon created this task.Apr 5 2018, 1:02 AM