Skip to content

Commit

Permalink
fix: lua: linux compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Nov 5, 2024
1 parent a615ab7 commit e8e6e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ UE_DISABLE_OPTIMIZATION_SHIP
TSharedPtr<FIRStruct> luaFIN_toUStruct(lua_State* L, int Index, UStruct* ParentType, bool bAllowConstruction) {
FLuaStruct* LuaStruct = luaFIN_toLuaStruct(L, Index, nullptr);
if (LuaStruct) {
if (!LuaStruct->Struct->GetStruct() || !LuaStruct->Struct->GetData() || ParentType && !LuaStruct->Struct->GetStruct()->IsChildOf(ParentType)) {
if (!LuaStruct->Struct->GetStruct() || !LuaStruct->Struct->GetData() || (ParentType && !LuaStruct->Struct->GetStruct()->IsChildOf(ParentType))) {
return nullptr;
}
return LuaStruct->Struct;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace FINLua {
template<typename T>
TSharedRef<T> luaFIN_checkStruct(lua_State* L, int Index, bool bAllowConstruction) {
auto Struct = luaFIN_checkUStruct(L, Index, TBaseStructure<T>::Get(), bAllowConstruction);
return TSharedRef<T>(Struct, &Struct->Get<T>());
return TSharedRef<T>(Struct, &Struct->template Get<T>());
}

/**
Expand Down

0 comments on commit e8e6e8e

Please sign in to comment.