Skip to content

Commit

Permalink
fix: shadowing "date", move to the correct place (#3219)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Jan 5, 2025
1 parent 0e188a9 commit 8aac2a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/io/io_bosstiary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ void IOBosstiary::loadBoostedBoss() {
return;
}

auto date = result->getNumber<uint16_t>("date");
auto timeNow = getTimeNow();
auto time = localtime(&timeNow);
auto today = time->tm_mday;

const auto &bossMap = getBosstiaryMap();
if (bossMap.size() <= 1) {
g_logger().error("[{}] It is not possible to create a boosted boss with only one registered boss. (CODE 02)", __FUNCTION__);
return;
}

auto timeNow = getTimeNow();
auto time = localtime(&timeNow);
auto today = time->tm_mday;

if (!result) {
g_logger().warn("[{}] No boosted boss found in g_database(). A new one will be selected.", __FUNCTION__);
} else {
Expand Down

0 comments on commit 8aac2a0

Please sign in to comment.