fix practically every version since i broke it last commit

This commit is contained in:
Milxnor
2023-03-24 07:32:58 -04:00
parent 7d21fef63a
commit 907650ef85
12 changed files with 37 additions and 38 deletions

View File

@@ -52,7 +52,7 @@ void* UObject::GetProperty(const std::string& ChildName, bool bWarnIfNotFound)
if (bWarnIfNotFound)
LOG_WARN(LogFinder, "Unable to find0{}", ChildName);
return 0;
return nullptr;
}
int UObject::GetOffset(const std::string& ChildName, bool bWarnIfNotFound)
@@ -60,7 +60,7 @@ int UObject::GetOffset(const std::string& ChildName, bool bWarnIfNotFound)
auto Property = GetProperty(ChildName, bWarnIfNotFound);
if (!Property)
return 0;
return -1;
return *(int*)(__int64(Property) + Offsets::Offset_Internal);
}