mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
PINK: fixes for Peril
This commit is contained in:
parent
37dbe057a8
commit
a75aeb62ee
@ -210,9 +210,8 @@ static Object* createObject(int objectId){
|
||||
case kHandlerStartPage:
|
||||
return new HandlerStartPage;
|
||||
case kHandlerTimer:
|
||||
return new HandlerTimer;
|
||||
case kHandlerTimerActions:
|
||||
return new HandlerTimerActions;
|
||||
return new HandlerTimerActions; // hack for Peril, but behavior is correct
|
||||
case kHandlerTimerSequences:
|
||||
return new HandlerTimerSequences;
|
||||
case kHandlerUseClick:
|
||||
|
@ -45,10 +45,13 @@ Sequencer *Actor::getSequencer() const {
|
||||
}
|
||||
|
||||
Action *Actor::findAction(const Common::String &name) {
|
||||
return *Common::find_if(_actions.begin(), _actions.end(), [&name]
|
||||
Action ** action = Common::find_if(_actions.begin(), _actions.end(), [&name]
|
||||
(Action* action) {
|
||||
return name == action->getName();
|
||||
});;
|
||||
if (!action)
|
||||
return nullptr;
|
||||
return *action;
|
||||
}
|
||||
|
||||
GamePage *Actor::getPage() const {
|
||||
|
Loading…
Reference in New Issue
Block a user