Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 30, 2024
1 parent 82fc295 commit e238298
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/common_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,8 @@ void FindDialogListBox::OnDrawItem(wxDC &dc, const wxRect &rect, size_t n) const
npcType = g_npcs[brushlist[n]->getName()];
}

auto lookType = monsterType ? monsterType->outfit.lookType : npcType ? npcType->outfit.lookType : 0;
auto lookType = monsterType ? monsterType->outfit.lookType : npcType ? npcType->outfit.lookType
: 0;
auto creatureSprite = g_gui.gfx.getCreatureSprite(lookType);
if (creatureSprite) {
creatureSprite->DrawTo(&dc, SPRITE_SIZE_32x32, rect.GetX(), rect.GetY(), rect.GetWidth(), rect.GetHeight());
Expand Down
2 changes: 1 addition & 1 deletion source/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ GameSprite::OutfitImage::OutfitImage(GameSprite* initParent, int initSpriteIndex
m_spriteId(initSpriteId),
m_spriteIndex(initSpriteIndex),
m_parent(initParent),
m_outfit(initOutfit) {}
m_outfit(initOutfit) { }

GameSprite::OutfitImage::~OutfitImage() {
m_cachedOutfitData = nullptr;
Expand Down

0 comments on commit e238298

Please sign in to comment.