vasyyshakov / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

Prevent potential crash when using RemoveEdict function. #243

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The RemoveEdict function isn't 100% safe at all times.

As an alternate, use this to remove entities:

    AcceptEntityInput(ent, "Kill")

More info: http://bugs.alliedmods.net/show_bug.cgi?id=4767

Original issue reported on code.google.com by richard.helgeby@gmail.com on 25 Dec 2010 at 1:21

GoogleCodeExporter commented 8 years ago
That's weird, this is the method we use to strip weapons (EVERY infection) and 
it's never crashed.  I think his case crashed because it was done in 
OnItemPickup.

Original comment by andrewbo...@gmail.com on 22 Mar 2011 at 3:34

GoogleCodeExporter commented 8 years ago
Possible fix in zr-3.0-b2:bffb56d5f6d2 (690).

Unconfirmed whether it's stable. Worked fine in a quick test with bots.

Original comment by richard.helgeby@gmail.com on 1 Jul 2012 at 7:38