fix a string check issue

This commit is contained in:
Erwin Coumans 2017-10-09 12:28:39 -07:00
parent 91e08ec986
commit d48e2a20af

View File

@ -4493,7 +4493,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm
//store needed info for tinyrenderer
visualHandle->m_localInertiaFrame = localInertiaFrame;
visualHandle->m_visualShape = visualShape;
visualHandle->m_pathPrefix = pathPrefix ? pathPrefix : "";
visualHandle->m_pathPrefix = pathPrefix[0] ? pathPrefix : "";
serverStatusOut.m_createUserShapeResultArgs.m_userShapeUniqueId = visualShapeUniqueId;
serverStatusOut.m_type = CMD_CREATE_VISUAL_SHAPE_COMPLETED;