Fixes for standard library changes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-26 10:36:02 +02:00
parent a4ac678154
commit bc975aba53
4 changed files with 4 additions and 8 deletions

View File

@@ -19,10 +19,7 @@ wasm_func_t* Species_GetFormeByHash(WebAssemblyScriptResolver* resolver) {
resolver,
{[](WebAssemblyScriptResolver*, const CreatureSpecies* species, u32 variant) -> const SpeciesVariant* {
auto opt = species->TryGetVariant(variant);
if (opt.has_value()) {
return opt.value();
}
return nullptr;
return opt.has_value() ? opt.value() : nullptr;
}});
}