Skip to content

Commit

Permalink
validate sign using component comparer
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho committed Jul 2, 2024
1 parent aade021 commit c22e541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/TinyEcs.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public partial {className}
return "";
}

var str = $"EcsAssert.Panic(query.TermsAccess[{j}].Id == Lookup.Component<T{j}>.HashCode," +
var str = $"EcsAssert.Panic(ComponentComparer.CompareTerms(null!, query.TermsAccess[{j}].Id, Lookup.Component<T{j}>.HashCode) == 0," +
$"\"param at {j} doesn't match the QueryData sign\");";

return str;
Expand Down

0 comments on commit c22e541

Please sign in to comment.