ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Error From ace_interact_menu_fnc_removeActionFromClass

Open voiperr opened this issue 11 years ago • 1 comments

ACE3 Version: 3.2.0

Mods:

  • @cba_a3
  • @ace3

Placed ACE3 Modules: None

Description: When you call ace_interact_menu_fnc_removeActionFromClass, and it's successful, it throws this error:

Error Undefined variable in expression: _parentlevel
File z\ace\addons\interact_menu\functions\fnc_removeActionFromClass.sqf, line 23

It's a result of :https://github.com/acemod/ACE3/blob/master/addons/interact_menu/functions/fnc_removeActionFromClass.sqf#L39: _parentLevel is never defined.

Steps to reproduce: Make a mission, put a soldier who is the same class as the player in front of player. In init.sqf: [typeOf player, 0, ["ACE_MainActions", "ACE_JoinGroup"]] call ace_interact_menu_fnc_removeActionFromClass

The rest of the actions are being registered, so it's not a case of calling the function too early.

When tested from debug console, it doesn't throw an error.

voiperr avatar Jul 28 '15 21:07 voiperr

Thanks for the great report, will be fixed

PabstMirror avatar Jul 28 '15 22:07 PabstMirror