Fix full toolbelt showing -2 tool slots in Adv. Trade

Correctly shows zero available tool slots when toolbelt, binocular and
NVG slots are full now.
This commit is contained in:
ebaydayz
2016-05-05 16:50:09 -04:00
parent fe54b78bdb
commit 7bc5d7f7f5
2 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ if(_selection == 2) then{ //gear
_allowedBackpacks = 1 - _currentBackpacks;
_allowedTools = 12;
_allowedTools = 14; // 12 toolbelt + 1 Binocular + 1 NVG
{
_parentClasses = [(configFile >> "CfgWeapons" >> _x ),true] call BIS_fnc_returnParents;