mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
CGE: Add a safeguard in pocFul
This commit is contained in:
parent
a1d9281fb4
commit
3c41d9b9cb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user