Use nbt_payload type instead of decltype hack

This commit is contained in:
Joshua Ashton 2020-08-07 01:30:48 +01:00
parent 38a5064917
commit 7b7b0e4941
1 changed files with 1 additions and 1 deletions

View File

@ -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()