We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a11d7 commit d7882b6Copy full SHA for d7882b6
Minecraft.World/MapItemSavedData.cpp
@@ -596,7 +596,14 @@ void MapItemSavedData::mergeInMapData(shared_ptr<MapItemSavedData> dataToAdd)
596
597
void MapItemSavedData::removeItemFrameDecoration(shared_ptr<ItemInstance> item)
598
{
599
- AUTO_VAR(frameDecoration, nonPlayerDecorations.find( item->getFrame()->entityId ) );
+ if ( !item )
600
+ return;
601
+
602
+ std::shared_ptr<ItemFrame> frame = item->getFrame();
603
+ if ( !frame )
604
605
606
+ auto frameDecoration = nonPlayerDecorations.find(frame->entityId);
607
if ( frameDecoration != nonPlayerDecorations.end() )
608
609
delete frameDecoration->second;
0 commit comments