diff options
author | Jesse Talavera <jesse@jesse.tg> | 2023-12-15 14:52:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 20:52:35 +0100 |
commit | eedb0ba478dea7ffebd347a37acdbf19b095066b (patch) | |
tree | ce2635d76aea1e16d4f0f6111acbb674f426821c /src | |
parent | e1821d00235d33b2fe384fffa7e34b00b7af3ec9 (diff) |
Add a call to `std::move` that I missed (#1917)
Diffstat (limited to 'src')
-rw-r--r-- | src/GBACart.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GBACart.cpp b/src/GBACart.cpp index 6cd6e39..826444b 100644 --- a/src/GBACart.cpp +++ b/src/GBACart.cpp @@ -758,7 +758,7 @@ std::unique_ptr<CartCommon> ParseROM(std::unique_ptr<u8[]>&& romdata, u32 romlen std::unique_ptr<u8[]> cartsram; try { - cartsram = sramdata ? std::make_unique<u8[]>(sramlen) : nullptr; + cartsram = std::move(sramdata) ? std::make_unique<u8[]>(sramlen) : nullptr; } catch (const std::bad_alloc& e) { |