summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShobhit Adlakha <adlakhashobhit@gmail.com>2019-02-14 13:40:30 -0500
committerShobhit Adlakha <adlakhashobhit@gmail.com>2019-02-14 13:40:30 -0500
commit25f1211d2988c451ededbab958d9b5fe4a5fcc1d (patch)
treeb5e4f5a66a0217901f7b2aa9379d0125f0e50717
parentd85e7f2e5a844145149a480f8e5d2d8cdcc1a013 (diff)
downloadsdl_core-fix/unhandled_smarttype_uint.tar.gz
Added case for handling SmartType UInteger in SmartObject::duplicate functionfix/unhandled_smarttype_uint
-rw-r--r--src/components/smart_objects/src/smart_object.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/smart_objects/src/smart_object.cc b/src/components/smart_objects/src/smart_object.cc
index 1322757ab1..3235dd619e 100644
--- a/src/components/smart_objects/src/smart_object.cc
+++ b/src/components/smart_objects/src/smart_object.cc
@@ -701,6 +701,9 @@ void SmartObject::duplicate(const SmartObject& OtherObject) {
case SmartType_Integer:
newData.int_value = OtherObject.m_data.int_value;
break;
+ case SmartType_UInteger:
+ newData.int_value = OtherObject.m_data.int_value;
+ break;
case SmartType_Double:
newData.double_value = OtherObject.m_data.double_value;
break;