Fixed issue where encoding was passed an incorrect parameter

This commit is contained in:
Collin Smith
2020-09-09 03:18:03 -07:00
parent 94c30110de
commit 9efc2bb5c3

View File

@ -227,7 +227,7 @@ public final class StatList {
assertMutable(); assertMutable();
final short stat = ids[index]; final short stat = ids[index];
assert !Stat.hasParams(stat) : "stat(" + stat + ") requires params"; assert !Stat.hasParams(stat) : "stat(" + stat + ") requires params";
assert encoding(stat) <= 2 : "#add() unsupported for encoding(" + encoding(stat) + ")"; assert encoding(index) <= 2 : "#add() unsupported for encoding(" + encoding(index) + ")";
if (log.traceEnabled()) log.trace( if (log.traceEnabled()) log.trace(
"add(stat: {} ({}), this: {}, src: {})", "add(stat: {} ({}), this: {}, src: {})",
stat, entry(stat), asString(index), _asString(index, value)); stat, entry(stat), asString(index), _asString(index, value));