Merge pull request #637 from Profex1999/patch-1

Fix removeWeaponComponent not working correctly
This commit is contained in:
Samuel
2020-04-09 17:54:55 +02:00
committed by GitHub
+1 -1
View File
@@ -432,7 +432,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
if component then
if self.hasWeaponComponent(weaponName, weaponComponent) then
for k,v in ipairs(self.loadout[loadoutNum].components) do
if v.name == weaponComponent then
if v == weaponComponent then
table.remove(self.loadout[loadoutNum].components, k)
break
end