CGE: Add a safeguard in pocFul

This commit is contained in:
Strangerke 2014-03-02 20:02:26 +01:00
parent a1d9281fb4
commit 3c41d9b9cb

View File

@ -658,6 +658,9 @@ void CGEEngine::selectPocket(int n) {
void CGEEngine::pocFul() {
debugC(1, kCGEDebugEngine, "CGEEngine::pocFul()");
if (!_hero)
error("pocFul - Unexpected null _hero");
_hero->park();
_commandHandler->addCommand(kCmdWait, -1, -1, _hero);
_commandHandler->addCommand(kCmdSeq, -1, kSeqPocketFull, _hero);