aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cge2/vmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge2/vmenu.cpp b/engines/cge2/vmenu.cpp
index 55ddc2aec0..a2f2f05389 100644
--- a/engines/cge2/vmenu.cpp
+++ b/engines/cge2/vmenu.cpp
@@ -95,14 +95,14 @@ char *VMenu::vmGather(Common::Array<Choice *> list) {
int len = 0;
int h = 0;
- for (int i = 0; i < list.size(); i++) {
+ for (uint i = 0; i < list.size(); i++) {
len += strlen(list[i]->_text);
++h;
}
_vmgt = new char[len + h];
if (_vmgt) {
*_vmgt = '\0';
- for (int i = 0; i < list.size(); i++) {
+ for (uint i = 0; i < list.size(); i++) {
if (*_vmgt)
strcat(_vmgt, "|");
strcat(_vmgt, list[i]->_text);
@@ -116,7 +116,7 @@ char *VMenu::vmGather(Common::Array<Choice *> list) {
VMenu::~VMenu() {
_addr = nullptr;
- for (int i = 0; i < _menu.size(); i++) {
+ for (uint i = 0; i < _menu.size(); i++) {
delete _menu[i];
}
}