Skip to content

Commit

Permalink
fix: warning related to temporary return
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Aug 30, 2023
1 parent d03ddcc commit 48ab2d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/items/item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class ItemProperties {
);
}
g_logger().error("Failed to convert attribute for type {}", fmt::underlying(type));
return {};

static T defaultType;
return defaultType;
}

bool hasAttribute(ItemAttribute_t type) const {
Expand Down

0 comments on commit 48ab2d0

Please sign in to comment.