From 7b7b0e49415f6889efa0609361414d4be6ec39b3 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 7 Aug 2020 01:30:48 +0100 Subject: [PATCH] Use nbt_payload type instead of decltype hack --- src/nbt/NBT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nbt/NBT.cpp b/src/nbt/NBT.cpp index c10d727..554d061 100644 --- a/src/nbt/NBT.cpp +++ b/src/nbt/NBT.cpp @@ -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()