[keel] Fix readAsset to actually return asset
This commit is contained in:
parent
afa3a13d41
commit
5a8da59df1
@ -30,7 +30,8 @@ ox::Result<T> readAsset(ox::BufferView buff) noexcept {
|
|||||||
}
|
}
|
||||||
auto out = ox::readClaw<T>(buff + offset);
|
auto out = ox::readClaw<T>(buff + offset);
|
||||||
oxReturnError(out);
|
oxReturnError(out);
|
||||||
return ensureValid(out.value);
|
oxReturnError(ensureValid(out.value));
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Result<ox::ModelObject> readAsset(ox::TypeStore &ts, ox::BufferView buff) noexcept;
|
ox::Result<ox::ModelObject> readAsset(ox::TypeStore &ts, ox::BufferView buff) noexcept;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user