mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 01:23:35 +02:00
- bugfixes for map editor and file extension function
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user