diff --git a/Source/UnrealEnginePython/Private/UEPyPlayer.cpp b/Source/UnrealEnginePython/Private/UEPyPlayer.cpp index 97b4f37f0..8ed74a9ac 100644 --- a/Source/UnrealEnginePython/Private/UEPyPlayer.cpp +++ b/Source/UnrealEnginePython/Private/UEPyPlayer.cpp @@ -59,7 +59,7 @@ PyObject *py_ue_get_num_players(ue_PyUObject *self, PyObject * args) { if (!world) return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject"); - AGameMode *game_mode = world->GetAuthGameMode(); + AGameMode *game_mode = (AGameMode *)world->GetAuthGameMode(); if (!game_mode) return PyErr_Format(PyExc_Exception, "unable to retrieve GameMode from world"); @@ -74,7 +74,7 @@ PyObject *py_ue_get_num_spectators(ue_PyUObject *self, PyObject * args) { if (!world) return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject"); - AGameMode *game_mode = world->GetAuthGameMode(); + AGameMode *game_mode = (AGameMode *)world->GetAuthGameMode(); if (!game_mode) return PyErr_Format(PyExc_Exception, "unable to retrieve GameMode from world"); diff --git a/Source/UnrealEnginePython/UnrealEnginePython.Build.cs b/Source/UnrealEnginePython/UnrealEnginePython.Build.cs index fe20c654c..262096d74 100644 --- a/Source/UnrealEnginePython/UnrealEnginePython.Build.cs +++ b/Source/UnrealEnginePython/UnrealEnginePython.Build.cs @@ -42,7 +42,8 @@ public UnrealEnginePython(TargetInfo Target) { "Core", "Sockets", - "Networking" + "Networking", + "LevelEditor" // ... add other public dependencies that you statically link with here ... } ); diff --git a/UnrealEnginePython.uplugin b/UnrealEnginePython.uplugin index 6d9aaddbe..b19e596de 100644 --- a/UnrealEnginePython.uplugin +++ b/UnrealEnginePython.uplugin @@ -10,7 +10,7 @@ "DocsURL": "", "MarketplaceURL": "", "SupportURL": "", - "EnabledByDefault": false, + "EnabledByDefault": true, "CanContainContent": true, "IsBetaVersion": true, "Installed": false,