- bugfixes for map editor and file extension function

This commit is contained in:
Mark Vejvoda
2011-05-24 01:44:48 +00:00
parent 821e159b05
commit e10df0affe
3 changed files with 47 additions and 12 deletions

View File

@@ -654,8 +654,8 @@ string ext(const string &s) {
i=s.find_last_of('.')+1;
if (i == string::npos) {
throw runtime_error(string(__FILE__) + " line: " + intToStr(__LINE__) + " i==string::npos for [" + s + "]");
if (i != string::npos) {
//throw runtime_error(string(__FILE__) + " line: " + intToStr(__LINE__) + " i==string::npos for [" + s + "]");
//}
return (s.substr(i, s.size()-i));
}