diff --git a/src/Battling/History/HistoryHolder.hpp b/src/Battling/History/HistoryHolder.hpp index a63e1da..105df5a 100644 --- a/src/Battling/History/HistoryHolder.hpp +++ b/src/Battling/History/HistoryHolder.hpp @@ -76,6 +76,7 @@ namespace CreatureLib::Battling { other._offset = _offset; other._capacity = _capacity; other._memory = static_cast(malloc(_capacity)); + memcpy(other._memory, _memory, _capacity); if (_top != nullptr) { other._top = reinterpret_cast(other._memory + ((u8*)_top - _memory)); }