diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/math/geometry_script.cpp | 4 |
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); |