summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRamesh Ravone <ramesh.maran443@gmail.com>2017-07-22 19:11:38 +0530
committerRamesh Ravone <ramesh.maran443@gmail.com>2017-07-22 19:16:10 +0530
commit36561b58531d25e43659e34fe5370cb170c806f3 (patch)
tree488b3886e4f18f3fed885c0694906339e1b1e17b /src
parenta3bcda958ea503ede07be35b46a6d983173d4b1c (diff)
downloadredot-cpp-36561b58531d25e43659e34fe5370cb170c806f3.tar.gz
String operator_plus fix
Diffstat (limited to 'src')
-rw-r--r--src/core/String.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/String.cpp b/src/core/String.cpp
index 6d0dc56..84c8ee8 100644
--- a/src/core/String.cpp
+++ b/src/core/String.cpp
@@ -84,14 +84,14 @@ bool String::operator !=(const String &s)
String String::operator +(const String &s)
{
String new_string = *this;
- godot_string_operator_plus(&new_string._godot_string, &s._godot_string);
+ new_string._godot_string = godot_string_operator_plus(&new_string._godot_string, &s._godot_string);
return new_string;
}
void String::operator +=(const String &s)
{
- godot_string_operator_plus(&_godot_string, &s._godot_string);
+ _godot_string = godot_string_operator_plus(&_godot_string, &s._godot_string);
}
void String::operator +=(const wchar_t c)