Fixed TEnumReflection compiler errors

This commit is contained in:
Aruki
2018-07-30 20:26:51 -06:00
parent 56c51b12fa
commit 180dea5358
+2 -2
View File
@@ -41,7 +41,7 @@ public:
static T ConvertStringToValue(const char* InValue)
{
//@todo this is slow
for (auto Iter = skNameMap.begin(); Iter != NameMap.end(); Iter++)
for (auto Iter = skNameMap.begin(); Iter != skNameMap.end(); Iter++)
{
if (strcmp(Iter->second, InValue) == 0)
{
@@ -49,7 +49,7 @@ public:
}
}
return skErrorValue;
return (T) skErrorValue;
}
/** Returns an iterator through the enum name map */