From 7b303f3903e5a1c5431e750018d15e91394283f3 Mon Sep 17 00:00:00 2001 From: Nailson Date: Mon, 26 Jun 2023 20:01:46 -0300 Subject: [PATCH] Fix Doodad brush --- source/doodad_brush.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/doodad_brush.cpp b/source/doodad_brush.cpp index 7707a9ff..a1bf7de5 100644 --- a/source/doodad_brush.cpp +++ b/source/doodad_brush.cpp @@ -94,7 +94,7 @@ bool DoodadBrush::loadAlternative(pugi::xml_node node, wxArrayString& warnings, } ItemType* type = g_items.getRawItemType(item->getID()); - if(!type) { + if(type) { type->doodad_brush = this; } @@ -152,7 +152,7 @@ bool DoodadBrush::loadAlternative(pugi::xml_node node, wxArrayString& warnings, items.push_back(item); ItemType* type = g_items.getRawItemType(item->getID()); - if(!type) { + if(type) { type->doodad_brush = this; } }