Fixes a typo
Fix memory corruption from instance_deactivate_object(), and simplify instance_deactivated_list.
Merge pull request #873 from sorlok/typo-fix

Fixes a typo
Merge pull request #874 from sorlok/instance_deact_fix

Fix memory corruption from instance_deactivate_object()