fix: lens[dpt] is not a type, should be tags[dpt]

This commit is contained in:
2025-08-20 16:45:53 +02:00
parent 23b64199d7
commit e67d8c7fd4

View File

@@ -28,7 +28,7 @@ const u8 *nbt_nexttag(const u8 *restrict buf) {
do { do {
ptr = tag; ptr = tag;
if (lens[dpt]) { if (lens[dpt]) {
type = lens[dpt]; type = tags[dpt];
lens[dpt]--; lens[dpt]--;
dpt -= !lens[dpt]; dpt -= !lens[dpt];
} else { } else {