[Scummvm-tracker] [ScummVM :: Bugs] #16399: HADESCH: Assertion in moveToRoomReal()
ScummVM :: Bugs
trac at scummvm.org
Thu Dec 18 06:43:14 UTC 2025
#16399: HADESCH: Assertion in moveToRoomReal()
-------------------------+------------------------------
Reporter: eriktorbjorn | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: Hadesch
Version: | Resolution:
Keywords: | Game: Hades Challenge
-------------------------+------------------------------
Comment (by eriktorbjorn):
Something like this might work:
{{{
diff --git a/engines/hadesch/hadesch.cpp b/engines/hadesch/hadesch.cpp
index 6836436b625..afc5d5ac3de 100644
--- a/engines/hadesch/hadesch.cpp
+++ b/engines/hadesch/hadesch.cpp
@@ -587,7 +587,10 @@ Common::Error HadeschEngine::run() {
case Common::EVENT_RETURN_TO_LAUNCHER:
return Common::kNoError;
case Common::EVENT_LBUTTONDOWN: {
- if(getVideoRoom()->isMouseEnabled() &&
getVideoRoom()->isHeroBeltEnabled()
+ if (!getVideoRoom()->isMouseEnabled())
+ break;
+
+ if (getVideoRoom()->isHeroBeltEnabled()
&&
_heroBelt->isPositionOverHeroBelt(event.mouse)) {
debug("handling belt click");
_heroBelt->handleClick(event.mouse);
}}}
It no longer crashes on repeated clicking, though it still sometimes plays
the same sound several times. No idea about that one.
--
Ticket URL: <https://bugs.scummvm.org/ticket/16399#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list