[Scummvm-git-logs] scummvm master -> 29273aaedb7651bc75f47cfc87332bd8a99a80be
Strangerke
noreply at scummvm.org
Mon Feb 17 23:07:37 UTC 2025
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:
29273aaedb M4: Burger: Fix CID 1551695
Commit: 29273aaedb7651bc75f47cfc87332bd8a99a80be
https://github.com/scummvm/scummvm/commit/29273aaedb7651bc75f47cfc87332bd8a99a80be
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-02-18T00:04:44+01:00
Commit Message:
M4: Burger: Fix CID 1551695
Changed paths:
engines/m4/burger/gui/inventory.cpp
diff --git a/engines/m4/burger/gui/inventory.cpp b/engines/m4/burger/gui/inventory.cpp
index 6e64b45ebf9..305ae8f1ef9 100644
--- a/engines/m4/burger/gui/inventory.cpp
+++ b/engines/m4/burger/gui/inventory.cpp
@@ -64,8 +64,7 @@ Inventory::~Inventory() {
bool Inventory::add(const Common::String &name, const Common::String &verb, int32 invSprite, int32 cursor) {
// Don't add something twice
- int iter;
- for (iter = 0; iter < _num_cells; iter++) {
+ for (int16 iter = 0; iter < _num_cells; iter++) {
if (name.equals(_items[iter]._name))
return true;
}
@@ -111,8 +110,7 @@ void Inventory::set_scroll(int32 new_scroll) {
}
bool Inventory::remove(const Common::String &name) {
- int iter;
- for (iter = 0; iter < _num_cells; iter++) {
+ for (int16 iter = 0; iter < _num_cells; iter++) {
// Found the thing?
if (name.equals(_items[iter]._name)) {
// Eat up its slot by moving everything down
@@ -178,7 +176,7 @@ void Inventory::draw(GrBuff *myBuffer) {
if (!_must_redraw1 && !_must_redraw2 && !_must_redraw_all)
return;
- int cell_iter;
+ int16 cell_iter;
Buffer *myBuff = myBuffer->get_buffer();
More information about the Scummvm-git-logs
mailing list