From 180dea53585765dbbca4763c96302973f1e717db Mon Sep 17 00:00:00 2001 From: Aruki Date: Mon, 30 Jul 2018 20:26:51 -0600 Subject: [PATCH] Fixed TEnumReflection compiler errors --- include/codegen/EnumReflection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/codegen/EnumReflection.h b/include/codegen/EnumReflection.h index 5cceb76..6109303 100644 --- a/include/codegen/EnumReflection.h +++ b/include/codegen/EnumReflection.h @@ -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 */