[keel] Fix readAsset to actually return asset

This commit is contained in:
Gary Talent 2024-11-15 01:01:31 -06:00
parent afa3a13d41
commit 5a8da59df1

View File

@ -30,7 +30,8 @@ ox::Result<T> readAsset(ox::BufferView buff) noexcept {
}
auto out = ox::readClaw<T>(buff + offset);
oxReturnError(out);
return ensureValid(out.value);
oxReturnError(ensureValid(out.value));
return out;
}
ox::Result<ox::ModelObject> readAsset(ox::TypeStore &ts, ox::BufferView buff) noexcept;