X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects%2FObject.cpp;h=84cc17353b84b487274acd4a478ac33f60029f70;hb=00a07ffc6abc6e36cf790448e694155f021c7b9d;hp=a2fcc9eb27f6a07a910e99e7d1424c3f6bbe583d;hpb=4da2d867e24687b29e1f812980664ee1493ad416;p=lugaru.git diff --git a/Source/Objects/Object.cpp b/Source/Objects/Object.cpp index a2fcc9e..84cc173 100644 --- a/Source/Objects/Object.cpp +++ b/Source/Objects/Object.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -636,6 +636,7 @@ void Object::Draw() void Object::DeleteObject(int which) { objects.erase(objects.begin() + which); + terrain.DeleteObject(which); } void Object::MakeObject(int atype, XYZ where, float ayaw, float apitch, float ascale)