Skip to content

Commit ff5c058

Browse files
Fix access violation in ListTag.element_class (#140)
1 parent 7cb5788 commit ff5c058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amulet/nbt/tag/list.py.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void init_list(py::module& m)
318318
};
319319
ListTag.def_property_readonly(
320320
"element_class",
321-
[&NBTClasses](const Amulet::NBT::ListTag& self) {
321+
[NBTClasses](const Amulet::NBT::ListTag& self) {
322322
return NBTClasses[self.index()];
323323
});
324324
ListTag.def(

0 commit comments

Comments
 (0)