Even better exception handling when we can't index an evalvalue

This commit is contained in:
2019-09-07 13:21:35 +02:00
parent 2e1bdcf3a4
commit d8c67f2dde
5 changed files with 9 additions and 9 deletions

View File

@@ -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);
}