diff --git a/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp b/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp index ad8afe22..03996b27 100644 --- a/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp +++ b/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp @@ -611,8 +611,7 @@ hsBool plPXPhysical::HandleRefMsg(plGenRefMsg* refMsg) subWorldIface = new plPXSubWorld(); // This can be simplified if/when incorporating zrax' String Theory library - std::string strKeyName = subSO->GetKeyName(); - strKeyName += "_DefSubWorld"; + std::string strKeyName = std::string(subSO->GetKeyName()) + "_DefSubWorld"; const char *cKeyName = strKeyName.c_str(); hsgResMgr::ResMgr()->NewKey(cKeyName,