diff options
| author | Rémi Verschelde | 2017-09-18 12:57:12 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-18 12:57:12 +0200 |
| commit | 7db006785c7cf48df253fadcfac68465745861c3 (patch) | |
| tree | 773f74196656d9026364e11a79357bafe82a2ebf /modules/visual_script/visual_script_func_nodes.cpp | |
| parent | 0a5e0b8e39a7af22b2a89eedfd77d711c3f062d2 (diff) | |
| parent | 137f8a58a8f2a6c356ef00e5371ff144c8a89fb0 (diff) | |
| download | godot-7db006785c7cf48df253fadcfac68465745861c3.tar.gz godot-7db006785c7cf48df253fadcfac68465745861c3.tar.zst godot-7db006785c7cf48df253fadcfac68465745861c3.zip | |
Merge pull request #11367 from hpvb/refactor-variant-op
Move Variant::evaluate() switch to computed goto
Diffstat (limited to 'modules/visual_script/visual_script_func_nodes.cpp')
| -rw-r--r-- | modules/visual_script/visual_script_func_nodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp index 267946750..f02e797fe 100644 --- a/modules/visual_script/visual_script_func_nodes.cpp +++ b/modules/visual_script/visual_script_func_nodes.cpp @@ -1546,7 +1546,7 @@ public: value = Variant::evaluate(Variant::OP_ADD, value, p_argument); } break; case VisualScriptPropertySet::ASSIGN_OP_SUB: { - value = Variant::evaluate(Variant::OP_SUBSTRACT, value, p_argument); + value = Variant::evaluate(Variant::OP_SUBTRACT, value, p_argument); } break; case VisualScriptPropertySet::ASSIGN_OP_MUL: { value = Variant::evaluate(Variant::OP_MULTIPLY, value, p_argument); |
