diff options
author | Rogier <rogier777@gmail.com> | 2016-11-06 16:18:29 +0100 |
---|---|---|
committer | Ner'zhul <nerzhul@users.noreply.github.com> | 2016-11-13 10:10:28 +0100 |
commit | 1980d9ea31e969c5b604f6ee01693cbcfc2c795a (patch) | |
tree | babe0e607937d8decffcd8451d04b912e8145b5c /src/settings.cpp | |
parent | e4031156f13d062b03960e7ef1c9221f749f884b (diff) | |
download | minetest-1980d9ea31e969c5b604f6ee01693cbcfc2c795a.tar.gz minetest-1980d9ea31e969c5b604f6ee01693cbcfc2c795a.tar.bz2 minetest-1980d9ea31e969c5b604f6ee01693cbcfc2c795a.zip |
Fix crash when attached object no longer exists
Active objects that are attached to other objects are not safe
from deletion. As a result, the parent object may have a reference
to an id of a child's that no longer exists.
If at some point an attempt is made to manipulate the child,
enviromment->getActiveObject(child-id) returns NULL. Using the
NULL pointer causes the crash...
Diffstat (limited to 'src/settings.cpp')
0 files changed, 0 insertions, 0 deletions