aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorGregory Montoir2007-05-13 02:07:54 +0000
committerGregory Montoir2007-05-13 02:07:54 +0000
commit67c9099c34fd501c490de64b009b7de6dbe17e4c (patch)
tree51d83be1bc8ee3392cd9a24b97cae0b210965e3f /engines
parente7834656a2cf7a103e78a6c856b104c505e4252f (diff)
downloadscummvm-rg350-67c9099c34fd501c490de64b009b7de6dbe17e4c.tar.gz
scummvm-rg350-67c9099c34fd501c490de64b009b7de6dbe17e4c.tar.bz2
scummvm-rg350-67c9099c34fd501c490de64b009b7de6dbe17e4c.zip
this should trigger invalid resource types loads, if that ever happens
svn-id: r26818
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;
}
}