diff --git a/RELEASE.md b/RELEASE.md index ffd0543b..00de1e59 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -22,6 +22,7 @@ - Fixed error in Cannibal's role weapon HUD when weapon was selected from last round (Thanks Stig!) - Fixed detective hats not hiding when the owning player was eaten by the Cannibal - Fixed Loot Goblin not being able to drop some weapons that were droppable +- Fixed errors in shop with weapons that don't use the TTT base weapon (like the holdable cat) - Ported "Add check for checking weapon GetHeadshotMultiplier" ### Developer diff --git a/gamemodes/terrortown/gamemode/cl_equip.lua b/gamemodes/terrortown/gamemode/cl_equip.lua index b3303705..7581e78b 100644 --- a/gamemodes/terrortown/gamemode/cl_equip.lua +++ b/gamemodes/terrortown/gamemode/cl_equip.lua @@ -674,7 +674,7 @@ local function GetOwnedEquipment() -- Determine if we already have equipment local owned_ids = {} for _, wep in ipairs(LocalPlayer():GetWeapons()) do - if IsValid(wep) and wep:IsEquipment() then + if IsValid(wep) and wep.IsEquipment and wep:IsEquipment() then TableInsert(owned_ids, wep:GetClass()) end end diff --git a/gamemodes/terrortown/gamemode/player_ext_shd.lua b/gamemodes/terrortown/gamemode/player_ext_shd.lua index 58240c09..412959dc 100644 --- a/gamemodes/terrortown/gamemode/player_ext_shd.lua +++ b/gamemodes/terrortown/gamemode/player_ext_shd.lua @@ -327,7 +327,7 @@ function plymeta:GetBaseKarma() return self:GetNWFloat("karma", 1000) end function plymeta:HasEquipmentWeapon() for _, wep in ipairs(self:GetWeapons()) do - if IsValid(wep) and wep:IsEquipment() then + if IsValid(wep) and wep.IsEquipment and wep:IsEquipment() then return true end end