[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);
|
||||
oxReturnError(out);
|
||||
return ensureValid(out.value);
|
||||
oxReturnError(ensureValid(out.value));
|
||||
return out;
|
||||
}
|
||||
|
||||
ox::Result<ox::ModelObject> readAsset(ox::TypeStore &ts, ox::BufferView buff) noexcept;
|
||||
|
Loading…
Reference in New Issue
Block a user