mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 07:35:45 +01:00
reorder variables in nbt_nexttag
This commit is contained in:
@@ -10,11 +10,11 @@
|
|||||||
#include "../util/intdef.h"
|
#include "../util/intdef.h"
|
||||||
|
|
||||||
const u8 *nbt_nexttag(const u8 *restrict buf) {
|
const u8 *nbt_nexttag(const u8 *restrict buf) {
|
||||||
const u8 *tag, *ptr, *tmp;
|
const u8 *tag, *ptr;
|
||||||
tag = buf;
|
|
||||||
uint dpt = 0;
|
uint dpt = 0;
|
||||||
|
|
||||||
// looping through the named tags
|
tag = buf;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
ptr = tag + be16toh(*(u16 *)(tag + 1)) + 3; // set `ptr` to start of data
|
ptr = tag + be16toh(*(u16 *)(tag + 1)) + 3; // set `ptr` to start of data
|
||||||
mems = 0;
|
mems = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user