mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Variable misnamed for event holder!
This commit is contained in:
parent
9a37538d50
commit
5c039a4ffd
@ -15,15 +15,15 @@ private ["_eventName", "_eventCode", "_eventNames", "_eventFunctions", "_eventNa
|
||||
_eventName = _this select 0;
|
||||
_eventCode = _this select 1;
|
||||
|
||||
_eventNames = GVAR(netEvents) select 0;
|
||||
_eventNames = GVAR(events) select 0;
|
||||
_eventFunctions = [];
|
||||
_eventIndex = _eventNames find _eventName;
|
||||
if(_eventIndex != -1) then {
|
||||
_eventFunctions = (GVAR(netEvents) select 1) select _eventIndex;
|
||||
_eventFunctions = (GVAR(events) select 1) select _eventIndex;
|
||||
} else {
|
||||
_eventNameCount = count _eventNames;
|
||||
_eventNames set[_eventNameCount, _eventName];
|
||||
(GVAR(netEvents) select 1) set[_eventNameCount, _eventFunctions];
|
||||
(GVAR(events) select 1) set[_eventNameCount, _eventFunctions];
|
||||
};
|
||||
|
||||
_eventFunctionCount = count _eventFunctions;
|
||||
|
@ -13,9 +13,9 @@
|
||||
private ["_eventName", "_eventNames", "_eventFunctions", "_eventIndex"];
|
||||
_eventName = _this select 0;
|
||||
|
||||
_eventNames = GVAR(netEvents) select 0;
|
||||
_eventNames = GVAR(events) select 0;
|
||||
_eventFunctions = [];
|
||||
_eventIndex = _eventNames find _eventName;
|
||||
if(_eventIndex != -1) then {
|
||||
(GVAR(netEvents) select 1) set[_eventIndex, []];
|
||||
(GVAR(events) select 1) set[_eventIndex, []];
|
||||
};
|
@ -15,10 +15,10 @@ private ["_eventName", "_eventNames", "_eventFunctions", "_eventIndex", "_eventC
|
||||
_eventName = _this select 0;
|
||||
_eventCodeIndex = _this select 1;
|
||||
|
||||
_eventNames = GVAR(netEvents) select 0;
|
||||
_eventNames = GVAR(events) select 0;
|
||||
_eventFunctions = [];
|
||||
_eventIndex = _eventNames find _eventName;
|
||||
if(_eventIndex != -1) then {
|
||||
_eventFunctions = (GVAR(netEvents) select 1) select _eventIndex;
|
||||
_eventFunctions = (GVAR(events) select 1) select _eventIndex;
|
||||
_eventFunctions set[_eventCodeIndex, nil];
|
||||
};
|
Loading…
Reference in New Issue
Block a user