diff options
| author | allkhor | 2016-07-31 00:18:30 +0600 |
|---|---|---|
| committer | allkhor | 2016-07-31 00:18:30 +0600 |
| commit | 09c4d65b64892f945aeb98a4abcedab42126c248 (patch) | |
| tree | 5d69f3bd40c741b648d9bed27d4306a95efc7ec1 | |
| parent | 73f83fadc82a9fa0fd4a70dec4ecd9d4a8dde6a9 (diff) | |
| download | godot-09c4d65b64892f945aeb98a4abcedab42126c248.tar.gz godot-09c4d65b64892f945aeb98a4abcedab42126c248.tar.zst godot-09c4d65b64892f945aeb98a4abcedab42126c248.zip | |
| -rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 6788ada1b..0d887210c 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -3491,7 +3491,7 @@ bool String::is_valid_integer() const { return false; int from=0; - if (operator[](0)=='+' || operator[](0)=='-') + if (len!=1 && (operator[](0)=='+' || operator[](0)=='-')) from++; for(int i=from;i<len;i++) { |
