Use nbt_payload type instead of decltype hack
This commit is contained in:
parent
38a5064917
commit
7b7b0e4941
|
@ -36,7 +36,7 @@ namespace NBT
|
|||
{
|
||||
// In C, the type could have been 'const struct nbt_list'
|
||||
// but in C++ we have to use this monstrosity because of anonymous innter structs
|
||||
return list_entry(item, const decltype(nbt_node::payload)::nbt_list, entry)->data;
|
||||
return list_entry(item, nbt_node::nbt_payload::nbt_list, entry)->data;
|
||||
}
|
||||
|
||||
DataBuffer::~DataBuffer()
|
||||
|
|
Loading…
Reference in New Issue