diff options
| author | Rémi Verschelde | 2018-05-01 08:35:10 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-01 08:35:10 +0200 |
| commit | 4cce6f34170d693be994d9a451b4b5f96a084cfb (patch) | |
| tree | 74fa8c76ccd7eb2f289f08bb38a095c4cc74cb59 /modules/visual_script | |
| parent | 613a8bee415381a8564d34092b479e1f159e8e60 (diff) | |
| parent | e6deba8d196a206ff350bc4d9fff783f78395d33 (diff) | |
| download | godot-4cce6f34170d693be994d9a451b4b5f96a084cfb.tar.gz godot-4cce6f34170d693be994d9a451b4b5f96a084cfb.tar.zst godot-4cce6f34170d693be994d9a451b4b5f96a084cfb.zip | |
Diffstat (limited to 'modules/visual_script')
| -rw-r--r-- | modules/visual_script/visual_script_expression.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/visual_script/visual_script_expression.cpp b/modules/visual_script/visual_script_expression.cpp index 55e2cc5fb..d5f9d2134 100644 --- a/modules/visual_script/visual_script_expression.cpp +++ b/modules/visual_script/visual_script_expression.cpp @@ -455,7 +455,7 @@ Error VisualScriptExpression::_get_token(Token &r_token) { break; } - if (cchar == '-' || (cchar >= '0' && cchar <= '9')) { + if (cchar >= '0' && cchar <= '9') { //a number String num; @@ -466,11 +466,6 @@ Error VisualScriptExpression::_get_token(Token &r_token) { #define READING_DONE 4 int reading = READING_INT; - if (cchar == '-') { - num += '-'; - cchar = GET_CHAR(); - } - CharType c = cchar; bool exp_sign = false; bool exp_beg = false; |
