Skip to content

Commit

Permalink
Merge pull request #158 from DFHack/desmell
Browse files Browse the repository at this point in the history
Desmell, part 3a
  • Loading branch information
myk002 authored Jan 21, 2025
2 parents b44dfa4 + a3ba5ec commit 9353a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GroundMaterialConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ namespace
bool addSingleTerrainConfig(TiXmlElement* elemRoot)
{
int basefile = loadImgFromXML(elemRoot);
if (basefile == INVALID_INDEX)
if (elemRoot->Attribute("file") != NULL && basefile == INVALID_INDEX)
return false;

std::string elementType = elemRoot->Value();
Expand Down
2 changes: 1 addition & 1 deletion TreeGrowthConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void parseGrowthElement(TiXmlElement* elemGrowthSprite, MaterialMatcher<c_sprite
bool addSingleGrowthConfig(TiXmlElement* elemRoot)
{
int basefile = loadImgFromXML(elemRoot);
if (basefile == INVALID_INDEX)
if (elemRoot->Attribute("file") != NULL && basefile == INVALID_INDEX)
return false;

std::string elementType = elemRoot->Value();
Expand Down

0 comments on commit 9353a43

Please sign in to comment.