Skip to content

Commit

Permalink
partial fix for FString::IsInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed May 20, 2024
1 parent 1dedcee commit ffbbe0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/utility/zstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,12 @@ octdigits = [0-7];
("0" octdigits+ | "0" [xX] hexdigits+ | (digits \ '0') digits*) { return true; }
[\000-\377] { return false; }*/

//FIX for "0" returning false, doesn't fix 0 with whitespace, but that isn't necessary for savegame loading, so it'll need to be fixed later
if(Len() == 1 && Chars[0] == '0') return true;



const char *YYCURSOR = Chars;
char yych;

Expand Down

0 comments on commit ffbbe0a

Please sign in to comment.