[Scummvm-git-logs] scummvm master -> dfe19f3551d872d9eab48802bd8ab6e91e8f7422
scemino
noreply at scummvm.org
Wed May 15 18:22:16 UTC 2024
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:
dfe19f3551 TWP: Fix invalid inventory item selected
Commit: dfe19f3551d872d9eab48802bd8ab6e91e8f7422
https://github.com/scummvm/scummvm/commit/dfe19f3551d872d9eab48802bd8ab6e91e8f7422
Author: scemino (scemino74 at gmail.com)
Date: 2024-05-15T20:21:19+02:00
Commit Message:
TWP: Fix invalid inventory item selected
Changed paths:
engines/twp/scenegraph.cpp
diff --git a/engines/twp/scenegraph.cpp b/engines/twp/scenegraph.cpp
index df9054f9847..0a0d1496706 100644
--- a/engines/twp/scenegraph.cpp
+++ b/engines/twp/scenegraph.cpp
@@ -752,7 +752,7 @@ void Inventory::update(float elapsed, Common::SharedPtr<Object> actor, const Col
if (item.contains(scrPos.getX(), scrPos.getY())) {
size_t index = _actor->_inventoryOffset * NUMOBJECTSBYROW + i;
if (index < _actor->_inventory.size()) {
- _obj = _actor->_inventory[i];
+ _obj = _actor->_inventory[index];
if (!_inventoryOver[i] && (_shakeTime[i] < 0.1f)) {
_shakeTime[i] = 0.25f;
More information about the Scummvm-git-logs
mailing list