X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects%2FObject.cpp;h=84cc17353b84b487274acd4a478ac33f60029f70;hb=a4fa4c9e3d7087b3789ff16238089547e78b818f;hp=a7d991d6907e1a81360f910ae199cfbc838d35f5;hpb=0aab437dc560d2afa982e61cc2547756ad7b0761;p=lugaru.git diff --git a/Source/Objects/Object.cpp b/Source/Objects/Object.cpp index a7d991d..84cc173 100644 --- a/Source/Objects/Object.cpp +++ b/Source/Objects/Object.cpp @@ -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)