diff options
-rw-r--r-- | engines/lure/res_struct.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index 73efc3a29a..ec1a546d05 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -1218,11 +1218,11 @@ void BarmanLists::loadFromStream(Common::ReadStream *stream) { void StringList::load(MemoryBlock *data) { // Get the number of entries - uint count = READ_LE_UINT16(data->data()); + uint numEntries = READ_LE_UINT16(data->data()); // Iterate through loading the strings one at a time const char *p = (const char *)data->data() + sizeof(uint16); - for (uint index = 0; index < count; ++index) { + for (uint index = 0; index < numEntries; ++index) { _entries.push_back(p); p += strlen(p) + 1; } |