From 36561b58531d25e43659e34fe5370cb170c806f3 Mon Sep 17 00:00:00 2001 From: Ramesh Ravone Date: Sat, 22 Jul 2017 19:11:38 +0530 Subject: String operator_plus fix --- src/core/String.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3