From 7bc8cd284a0929f67b51dd9ffbd6dd6ce09f0746 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 5 Aug 2010 10:46:18 +0000 Subject: SWORD25: Fixed string comparisons against pointers rather than contents svn-id: r53210 --- engines/sword25/math/geometry_script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sword25') 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); -- cgit v1.2.3