Error From ace_interact_menu_fnc_removeActionFromClass
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.
Thanks for the great report, will be fixed