aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2010-08-05 10:46:18 +0000
committerEugene Sandulenko2010-10-12 22:24:03 +0000
commit7bc8cd284a0929f67b51dd9ffbd6dd6ce09f0746 (patch)
tree2535b27a352fd4fd235ecbf859b5845388e56942 /engines
parent6984d24d06226a2124907ad440e9a5dee9a4624a (diff)
downloadscummvm-rg350-7bc8cd284a0929f67b51dd9ffbd6dd6ce09f0746.tar.gz
scummvm-rg350-7bc8cd284a0929f67b51dd9ffbd6dd6ce09f0746.tar.bz2
scummvm-rg350-7bc8cd284a0929f67b51dd9ffbd6dd6ce09f0746.zip
SWORD25: Fixed string comparisons against pointers rather than contents
svn-id: r53210
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/math/geometry_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/math/geometry_script.cpp b/engines/sword25/math/geometry_script.cpp
index 08e6d3b159..7a0fcd8188 100644
--- a/engines/sword25/math/geometry_script.cpp
+++ b/engines/sword25/math/geometry_script.cpp
@@ -203,9 +203,9 @@ static unsigned int TableRegionToRegion(lua_State *L, const char *ClassName) {
}
unsigned int RegionHandle;
- if (ClassName == REGION_CLASS_NAME) {
+ if (!strcmp(ClassName, REGION_CLASS_NAME)) {
RegionHandle = BS_Region::Create(BS_Region::RT_REGION);
- } else if (ClassName == WALKREGION_CLASS_NAME) {
+ } else if (!strcmp(ClassName, WALKREGION_CLASS_NAME)) {
RegionHandle = BS_WalkRegion::Create(BS_Region::RT_WALKREGION);
} else {
BS_ASSERT(false);