summarylogtreecommitdiffstats
path: root/smc-get-to-world2.patch
blob: 5d19b14e2f14800ac8d10584b3651287b7b6fb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/smc/smc/src/overworld/world_manager.cpp	2014-07-13 17:11:53.337301000 +0200
+++ b/smc/smc/src/overworld/world_manager.cpp	2014-07-13 17:32:06.634548009 +0200
@@ -204,6 +204,16 @@
 		{
 			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;