Add check for empty _ropeClass

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
mharis001 2020-02-20 00:48:03 -05:00 committed by GitHub
parent 2dcbf2ba26
commit e2725e52ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ if (_ropeLength <= 0) then {
TRACE_3("",_ropeClass,_ropeLength,GVAR(requireRopeItems));
if (GVAR(requireRopeItems)) then {
if (GVAR(requireRopeItems) && {_ropeClass != ""}) then {
if (_ropeClass in (_player call EFUNC(common,uniqueItems))) then {
_player removeItem _ropeClass;
} else {