aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GBACart.cpp2
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)
{