CGE2: Implement ~Sprite().

This commit is contained in:
uruk 2014-05-10 14:45:02 +02:00
parent 3af6ff5457
commit 89bece4b42

View File

@ -94,7 +94,10 @@ Sprite::Sprite(CGE2Engine *vm, BitmapPtr *shpP)
}
Sprite::~Sprite() {
warning("STUB: Sprite::~Sprite()");
if (_vm->_sprite == this)
_vm->_sprite = NULL;
contract();
}
BitmapPtr Sprite::shp() {