mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
real
This commit is contained in:
@@ -86,6 +86,8 @@ static inline class UWorld* GetWorld()
|
||||
static auto GameViewportOffset = Engine->GetOffset("GameViewport");
|
||||
auto GameViewport = Engine->Get<UObject*>(GameViewportOffset);
|
||||
|
||||
if (!GameViewport) return nullptr;
|
||||
|
||||
static auto WorldOffset = GameViewport->GetOffset("World");
|
||||
|
||||
return GameViewport->Get<class UWorld*>(WorldOffset);
|
||||
|
||||
Reference in New Issue
Block a user