[Scummvm-git-logs] scummvm master -> ce379f57b8d63e357cebe0d195ed9f460fc672c7
sev-
noreply at scummvm.org
Sun May 14 21:06:49 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ce379f57b8 XEEN: show class restriction icons in shops
Commit: ce379f57b8d63e357cebe0d195ed9f460fc672c7
https://github.com/scummvm/scummvm/commit/ce379f57b8d63e357cebe0d195ed9f460fc672c7
Author: Alexander Izmailov (yarolig at gmail.com)
Date: 2023-05-14T23:06:44+02:00
Commit Message:
XEEN: show class restriction icons in shops
Changed paths:
engines/mm/xeen/dialogs/dialogs_items.cpp
diff --git a/engines/mm/xeen/dialogs/dialogs_items.cpp b/engines/mm/xeen/dialogs/dialogs_items.cpp
index 389ca5827f2..824c5f8cce1 100644
--- a/engines/mm/xeen/dialogs/dialogs_items.cpp
+++ b/engines/mm/xeen/dialogs/dialogs_items.cpp
@@ -60,6 +60,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
_oldCharacter = c;
c = &_itemsCharacter;
party._blacksmithWares.blackData2CharData(_itemsCharacter);
+ _itemsCharacter._class = _oldCharacter->_class;
setEquipmentIcons();
} else if (mode == ITEMMODE_ENCHANT) {
_oldCharacter = c;
@@ -313,6 +314,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
_oldCharacter = newChar;
startingChar = newChar;
c = &_itemsCharacter;
+ _itemsCharacter._class = _oldCharacter->_class;
} else if (mode == ITEMMODE_SELL || mode == ITEMMODE_REPAIR || mode == ITEMMODE_IDENTIFY) {
_oldCharacter = newChar;
startingChar = newChar;
More information about the Scummvm-git-logs
mailing list