Skip to content

Commit

Permalink
fix: ubuntu warning reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Sep 26, 2024
1 parent a75516b commit 17f70f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/creatures/monsters/spawns/spawn_monster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ class SpawnMonster {

// moveable
SpawnMonster(SpawnMonster &&rhs) noexcept :
spawnMonsterMap(std::move(rhs.spawnMonsterMap)),
spawnedMonsterMap(std::move(rhs.spawnedMonsterMap)),
checkSpawnMonsterEvent(rhs.checkSpawnMonsterEvent), centerPos(rhs.centerPos), radius(rhs.radius), interval(rhs.interval) { }
spawnMonsterMap(std::move(rhs.spawnMonsterMap)),
centerPos(rhs.centerPos),
radius(rhs.radius),
interval(rhs.interval),
checkSpawnMonsterEvent(rhs.checkSpawnMonsterEvent) { }

SpawnMonster &operator=(SpawnMonster &&rhs) noexcept {
if (this != &rhs) {
Expand Down Expand Up @@ -77,15 +80,12 @@ class SpawnMonster {
void setMonsterVariant(const std::string &variant);

private:
// map of the spawned creatures
// The map of the spawned creatures
std::map<uint32_t, std::shared_ptr<Monster>> spawnedMonsterMap;

// map of creatures in the spawn
// The map of creatures in the spawn
std::map<uint32_t, spawnBlock_t> spawnMonsterMap;

Position centerPos;
int32_t radius;

uint32_t interval = 30000;
uint32_t checkSpawnMonsterEvent = 0;

Expand Down

0 comments on commit 17f70f1

Please sign in to comment.