Skip to content

Commit 571dd79

Browse files
author
Roberto De Ioris
committed
fixed python2 support
1 parent 864c8ff commit 571dd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/UnrealEnginePython/Private/UnrealEnginePython.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void FUnrealEnginePythonModule::StartupModule()
9191
#if PY_MAJOR_VERSION >= 3
9292
wchar_t *home = (wchar_t *)*PyHome;
9393
#else
94-
char *home = TCHAR_TO_UTF8(*home);
94+
char *home = TCHAR_TO_UTF8(*PyHome);
9595
#endif
9696

9797
Py_SetPythonHome(home);

0 commit comments

Comments
 (0)