MesoX/arcemu — comment on commit 380c588e2c16808a2d19f7d840f78434c4a66a84
File:  line 0
By jackpoz:

Never store Object references (Creature is an Object) in scripts, as if those Objects are deleted your script stores a pointer to free'd memory. ArcScripts were full of crashes caused by this, instead store the GUID and retrieve the Object reference when needed. .npc delete called on the anchor will crash UnworthyInitiate script.