Fix nil index error in purr sound function
This commit is contained in:
parent
c400a17b88
commit
19bfb41a0a
@ -397,7 +397,7 @@ do
|
||||
function purr(state)
|
||||
if state and not purr_sound then
|
||||
purr_sound=sound_settings(sounds["entity.cat.purr"]):loop(true):play()
|
||||
elseif not state then
|
||||
elseif not state and purr_sound then
|
||||
purr_sound:stop()
|
||||
purr_sound=nil
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user