diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index 572581b67e..6891cb3e07 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -20,6 +20,7 @@ #include "../MIPS/MIPSCodeUtils.h" #include "../MIPS/MIPSInt.h" +#include "Common/LogManager.h" #include "../FileSystems/FileSystem.h" #include "../FileSystems/MetaFileSystem.h" #include "../PSPLoaders.h" @@ -29,7 +30,6 @@ #include "../../GPU/GPUInterface.h" #include "../../GPU/GPUState.h" - #include "__sceAudio.h" #include "sceAtrac.h" #include "sceAudio.h" @@ -442,7 +442,10 @@ void KernelObjectPool::DoState(PointerWrap &p) ERROR_LOG(HLE, "Unable to load state: different kernel object storage."); if (p.mode == p.MODE_READ) + { + hleCurrentThreadName = NULL; kernelObjects.Clear(); + } p.DoArray(occupied, maxCount); for (int i = 0; i < maxCount; ++i)