From 182c04b59d8bcd9a452db29cb29a7a26a3a5a02e Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 18 Aug 2018 21:01:32 +0300 Subject: [PATCH] Improve vm::unmap Prevent unmapping predefined locations --- rpcs3/Emu/Memory/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 1facefe4c9..b2637436a8 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -801,7 +801,7 @@ namespace vm { vm::writer_lock lock(0); - for (auto it = g_locations.begin(); it != g_locations.end(); it++) + for (auto it = g_locations.begin() + memory_location_max; it != g_locations.end(); it++) { if (*it && (*it)->addr == addr) {