CGE2: Fix possible null pointer dereference.

This commit is contained in:
uruk 2014-08-03 09:27:36 +02:00
parent 9dc06870e7
commit 2b60bb9cc3

View File

@ -664,9 +664,10 @@ void Sprite::show() {
e->_b0 = e->_b1;
e->_p1 = _pos2D;
e->_b1 = getShp();
if (!_flags._hide)
e->_b1->show(e->_p1);
}
if (!_flags._hide)
e->_b1->show(e->_p1);
}
void Sprite::show(uint16 pg) {