Browse Source

Merge pull request #1988 from DTFuchs/Redundant-Check-GetTrailingNumber

Better bug fix for #1738 (str.cpp)
Areloch 8 years ago
parent
commit
6fb33411e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/core/util/str.cpp

+ 1 - 1
Engine/source/core/util/str.cpp

@@ -1620,7 +1620,7 @@ String String::GetTrailingNumber(const char* str, S32& number)
    if ((*p == '-') || (*p == '_'))
       number = -dAtoi(p + 1);
    else
-      number = (isdigit(*p) && (p == base.c_str()) ? dAtoi(p) : dAtoi(++p));
+      number = (isdigit(*p) ? dAtoi(p) : dAtoi(++p));
 
    // Remove space between the name and the number
    while ((p > base.c_str()) && dIsspace(*(p-1)))