Fix crash when created menu results in a nil object... who knows when that could happen, right!?
parent
449bd8e2db
commit
37f9747e03
|
@ -50,6 +50,8 @@ local function PlayTaunt(sound)
|
|||
end
|
||||
|
||||
local function Apply(menu, taunts)
|
||||
if not IsValid(menu) then return end
|
||||
|
||||
-- sort sounds
|
||||
local sounds = {}
|
||||
for key,value in pairs(taunts.sounds) do
|
||||
|
|
Loading…
Reference in New Issue