Bug #14730

XEH Manipulates Fired EH _this array, should create a copy and modify that instead

Added by Sickboy almost 5 years ago. Updated almost 5 years ago.

Status:Closed Start date:10/29/2010
Priority:Normal Due date:
Assignee:Sickboy % Done:

100%

Category:XEH
Target version:v0.7.0
Component: Affected Version:
Close Reason:

Description

fired = "_c=count _this;if(_c<6)then{_this set[_c,nearestObject[_this select 0,_this select 4]];_this set[_c+1,currentMagazine(_this select 0)]}else{_mag=_this select 5;_this set[5,_this select 6];_this set[6,_mag]};{_this call _x}forEach((_this select 0)getVariable'Extended_FiredEH')"; \

should become:

#define EXTENDED_EVENTHANDLERS init = "if(isnil'SLX_XEH_objects')then{call compile preprocessFile'extended_eventhandlers\InitXEH.sqf'};[_this select 0,'Extended_Init_EventHandlers']call SLX_XEH_init;"; \
fired = "_par = +_this;_c=count _par;if(_c<6)then{_par set[_c,nearestObject[_par select 0,_par select 4]];_par set[_c+1,currentMagazine(_par select 0)]}else{_mag=_par select 5;_par set[5,_par select 6];_par set[6,_mag]};{_par call _x}forEach((_par select 0)getVariable'Extended_FiredEH')"; \

Associated revisions

Revision 7ae1bd08
Added by Sickboy almost 5 years ago

FIXED: XEH changes Fired EH order of _this parameters. fixes #14730

Revision 7ae1bd08
Added by Sickboy almost 5 years ago

FIXED: XEH changes Fired EH order of _this parameters. fixes #14730

History

Updated by Sickboy almost 5 years ago

  • Category set to XEH
  • Status changed from New to In progress
  • Assignee set to Sickboy
  • Target version set to v0.7.0

Updated by Sickboy almost 5 years ago

  • Status changed from In progress to Resolved
  • % Done changed from 0 to 100

Updated by Sickboy almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF