PRINCE: get/set mob data added

This commit is contained in:
Kamil Zbróg 2013-11-14 14:44:24 +00:00
parent 8cffaaaff3
commit 7b1fed7331
7 changed files with 154 additions and 18 deletions

View file

@ -36,9 +36,11 @@ Object::Object() : _surface(NULL), _x(0), _y(0), _z(0) {
}
Object::~Object() {
_surface->free();
delete _surface;
_surface = NULL;
if (_surface) {
_surface->free();
delete _surface;
_surface = NULL;
}
}
void Object::loadSurface(Common::SeekableReadStream &stream) {