mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a bit
Fixed MCP on 1.8, Fixed some buildings not showing up on 1.7.2 and 1.8, fixed listplayers crashing on some versions
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "Class.h"
|
||||
#include "KismetSystemLibrary.h"
|
||||
#include "UObjectArray.h"
|
||||
#include "Package.h"
|
||||
|
||||
FName* getFNameOfProp(void* Property)
|
||||
{
|
||||
@@ -140,6 +141,20 @@ std::string UObject::GetFullName()
|
||||
return ClassPrivate ? ClassPrivate->GetName() + " " + UKismetSystemLibrary::GetPathName(this).ToString() : "NoClassPrivate";
|
||||
}
|
||||
|
||||
UPackage* UObject::GetOutermost() const
|
||||
{
|
||||
UObject* Top = (UObject*)this;
|
||||
for (;;)
|
||||
{
|
||||
UObject* CurrentOuter = Top->GetOuter();
|
||||
if (!CurrentOuter)
|
||||
{
|
||||
return Cast<UPackage>(Top);
|
||||
}
|
||||
Top = CurrentOuter;
|
||||
}
|
||||
}
|
||||
|
||||
bool UObject::IsA(UClass* otherClass)
|
||||
{
|
||||
UClass* super = ClassPrivate;
|
||||
|
||||
Reference in New Issue
Block a user