mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
MADS: Show correct article when using items on items
This commit is contained in:
parent
c0b8a94a8c
commit
f69a1fe2d7
@ -236,12 +236,12 @@ void MADSAction::set() {
|
||||
int articleNum = 0;
|
||||
|
||||
if ((_secondObjectSource == 2) || (_secondObjectSource == 5)) {
|
||||
InventoryObject &invObject = _vm->_game->_objects.getItem(_hotspotId);
|
||||
InventoryObject &invObject = _vm->_game->_objects.getItem(_secondObject);
|
||||
articleNum = invObject._article;
|
||||
} else if (_hotspotId < (int)scene._hotspots.size()) {
|
||||
articleNum = scene._hotspots[_hotspotId]._articleNumber;
|
||||
} else if (_secondObject < (int)scene._hotspots.size()) {
|
||||
articleNum = scene._hotspots[_secondObject]._articleNumber;
|
||||
} else {
|
||||
articleNum = scene._dynamicHotspots.get(_hotspotId - scene._hotspots.size())._articleNumber;
|
||||
articleNum = scene._dynamicHotspots.get(_secondObject - scene._hotspots.size())._articleNumber;
|
||||
}
|
||||
|
||||
_statusText += kArticleList[articleNum];
|
||||
|
Loading…
Reference in New Issue
Block a user