diff --git a/engine/src/script/script.cpp b/engine/src/script/script.cpp index 56daec3..b87810f 100644 --- a/engine/src/script/script.cpp +++ b/engine/src/script/script.cpp @@ -548,7 +548,7 @@ gaddr_t Script::guest_alloc(gaddr_t bytes) gaddr_t Script::guest_alloc_sequential(gaddr_t bytes) { - return machine().arena().seq_alloc_aligned(bytes, 8); + return machine().arena().seq_alloc_aligned(bytes, 8, machine().memory.initial_rodata_end() != 0x0); } bool Script::guest_free(gaddr_t addr) diff --git a/engine/src/script/script.hpp b/engine/src/script/script.hpp index ce7ecdb..b453a94 100644 --- a/engine/src/script/script.hpp +++ b/engine/src/script/script.hpp @@ -523,6 +523,7 @@ template struct GuestObjects other.m_address = 0x0; other.m_count = 0u; } + GuestObjects& operator=(GuestObjects&& other) = delete; ~GuestObjects() {