aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/touche/resource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp
index 1d57a5b036..92a83cdd7f 100644
--- a/engines/touche/resource.cpp
+++ b/engines/touche/resource.cpp
@@ -193,8 +193,8 @@ uint32 ToucheEngine::res_getDataOffset(ResourceType type, int num, uint32 *size)
const ResourceData *rd = NULL;
for (unsigned int i = 0; i < ARRAYSIZE(dataTypesTable); ++i) {
- rd = &dataTypesTable[i];
- if (rd->type == type) {
+ if (dataTypesTable[i].type == type) {
+ rd = &dataTypesTable[i];
break;
}
}