diff --git a/src/keel/pack.hpp b/src/keel/pack.hpp index 5380dc35..5db6bb1e 100644 --- a/src/keel/pack.hpp +++ b/src/keel/pack.hpp @@ -98,10 +98,10 @@ ox::Error preloadObj( oxReturnError(pl->endAlloc()); oxReturnError(err); const keel::PreloadPtr p{.preloadAddr = static_cast(a)}; - oxReturnError(ox::writeMC(&p).moveTo(&buff)); + oxReturnError(ox::writeMC(p).moveTo(&buff)); } else { // strip the Claw header (it is not needed after preloading) and write back out to dest fs - oxReturnError(ox::writeMC(&obj).moveTo(&buff)); + oxReturnError(ox::writeMC(obj).moveTo(&buff)); } oxReturnError(romFs->write(path, buff.data(), buff.size())); return {};