App: fix crash on copy of Enumeration

This commit is contained in:
Zheng, Lei
2021-11-14 20:45:09 -06:00
committed by Chris Hennes
parent 03dd79c155
commit 3cc2b49ee9
+1
View File
@@ -38,6 +38,7 @@ Enumeration::Enumeration()
}
Enumeration::Enumeration(const Enumeration &other)
: _EnumArray(NULL), _ownEnumArray(false), _index(0), _maxVal(-1)
{
if (other._ownEnumArray) {
setEnums(other.getEnumVector());