diff options
author | jackpoz <giacomopoz@gmail.com> | 2013-12-29 01:19:52 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2013-12-29 01:19:52 +0100 |
commit | 3744c141841917075c295c3c38643e3d156eb9d4 (patch) | |
tree | 85f50a597d7bf73cc7fbe431d3e4e13a54e89f70 /contrib/ScriptsConverter/ScriptConverter/Program.cs | |
parent | 765cd8323743a592f1983b587e8b3ef615d030ff (diff) |
Scripts/Misc: Ensure Creatures are in instances when required
Create ScriptedAIs that require a InstanceScript reference only if the InstanceScript exists, so if these Creatures are in an instance. ScriptedAIs that don't require a InstanceScript reference have not been modified.
This fixes many possible NULL dereference crashes happening when spawning a scripted Creature outside of an instance.
Fixed a GetOwner() and a ToPlayer() NULL dereference crashes too.
Diffstat (limited to 'contrib/ScriptsConverter/ScriptConverter/Program.cs')
0 files changed, 0 insertions, 0 deletions