[Scummvm-tracker] [ScummVM :: Bugs] #14493: XEEN: Coin of Daily &use magic items crashes game

ScummVM :: Bugs trac at scummvm.org
Mon Jun 5 05:36:23 UTC 2023


#14493: XEEN: Coin of Daily &use magic items crashes game
-------------------------+---------------------------------------------
Reporter:  IvoryTower33  |       Owner:  dreammaster
    Type:  defect        |      Status:  closed
Priority:  normal        |   Component:  Engine: Xeen
 Version:                |  Resolution:  fixed
Keywords:                |        Game:  Might and Magic: World of Xeen
-------------------------+---------------------------------------------
Changes (by dreammaster):

 * status:  new => closed
 * resolution:   => fixed


Old description:

> edited: actually, the game crashes frequently when trying to use either
> of those items, both wand of daily protection and coin of daily sorcery.
> Not sure why this happens.

New description:

 edited: actually, the game crashes frequently when trying to use either of
 those items, both wand of daily protection and coin of daily sorcery. Not
 sure why this happens.

--
Comment:

 You're right. I dug a bit deeper, and Combat._oldCharacter is set all the
 time when a character casts a spell (so it would really be more
 appropriate if it were a general global). So it was proper to always
 properly set the field to the character whose item is being used, no
 matter what mode the game is in. I've now committed an appropriate fix.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/14493#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list