From 59b45769eeb14cc608315c71d8f6094d2a4863a6 Mon Sep 17 00:00:00 2001 From: John Johns Date: Mon, 31 May 2021 11:14:26 -0700 Subject: [PATCH] Cleaner string handling courtesy rarified --- Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,