mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a lottt of stuff
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "Class.h"
|
||||
#include "KismetSystemLibrary.h"
|
||||
|
||||
int UObject::GetOffset(const std::string& ChildName)
|
||||
int UObject::GetOffset(const std::string& ChildName, bool bWarnIfNotFound)
|
||||
{
|
||||
auto getFNameOfProp = [](void* Property) -> FName*
|
||||
{
|
||||
@@ -47,7 +47,8 @@ int UObject::GetOffset(const std::string& ChildName)
|
||||
}
|
||||
}
|
||||
|
||||
LOG_WARN(LogFinder, "Unable to find0{}", ChildName);
|
||||
if (bWarnIfNotFound)
|
||||
LOG_WARN(LogFinder, "Unable to find0{}", ChildName);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user