Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 committed Aug 21, 2024
1 parent 730df1f commit 481c634
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/enums/account_coins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ enum class CoinTransactionType : uint8_t {

enum class CoinType : uint8_t {
Normal = 0,
Transferable = 1
Transferable = 1,
Tournament = 2
};
2 changes: 0 additions & 2 deletions src/io/io_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include "creatures/players/player.hpp"
#include "utils/tools.hpp"

#include "enums/account_coins.hpp"

bool IOStore::loadFromXml() {

Check warning on line 18 in src/io/io_store.cpp

View workflow job for this annotation

GitHub Actions / Qodana for C/C++

function-cognitive-complexity

function 'loadFromXml' has cognitive complexity of 40 (threshold 25)
pugi::xml_document doc;
auto folder = g_configManager().getString(CORE_DIRECTORY, __FUNCTION__) + "/XML/store/store.xml";
Expand Down
2 changes: 2 additions & 0 deletions src/io/io_store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <string>
#include <vector>

#include "enums/account_coins.hpp"

// XML
enum class OfferTypes_t : uint8_t {
NONE = 0,
Expand Down

0 comments on commit 481c634

Please sign in to comment.