Even better exception handling when we can't index an evalvalue
This commit is contained in:
@@ -58,8 +58,8 @@ namespace Porygon::UserData {
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
inline const EvalValue* IndexValue(uint32_t hash) const final {
|
||||
auto field = _userData->Get()->GetField(hash);
|
||||
inline const EvalValue* IndexValue(const Utilities::HashedString* hash) const final {
|
||||
auto field = _userData->Get()->GetField(hash->GetHash());
|
||||
return field->Get(_obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user