mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
Add a call to std::move
that I missed (#1917)
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user