Skip to content

Commit 4a8523d

Browse files
committed
don't run SafeRemoveEntityDelayed on the weapon part's weapon owner
it's on remove(e.g. clearing outfit) but it happens in weirdly specific circumstances, with the "all" mode
1 parent 2c9dd52 commit 4a8523d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/pac3/core/client/parts/model/weapon.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,8 @@ function PART:OnHide()
158158
end
159159
end
160160

161+
function PART:OnRemove()
162+
--overridden to prevent calling SafeRemoveEntityDelayed on a weapon entity (not a pac CS Ent)
163+
end
164+
161165
BUILDER:Register()

0 commit comments

Comments
 (0)