Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions smc/src/overworld/world_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,16 @@ cOverworld *cOverworld_Manager :: Get_from_Path( const std::string &path )
if( obj->m_description->m_path.compare( path ) == 0 )
{
return obj;
}else if(obj->m_description->m_path.at(0) == '/'){

std::string newPath ( obj->m_description->m_path );
newPath.erase(0,1);
if(newPath.compare( path ) == 0){

return obj;

}

}

return NULL;
Expand Down