Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Server/Misc: Fix some static analysis issues.
Browse files Browse the repository at this point in the history
Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information
AriDEV committed May 6, 2019
1 parent 5f199a7 commit a827c75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/server/game/Conditions/ConditionMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ struct Condition
SourceType = CONDITION_SOURCE_TYPE_NONE;
SourceGroup = 0;
SourceEntry = 0;
SourceId = 0;
ElseGroup = 0;
ConditionType = CONDITION_NONE;
ConditionTarget = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Events/GameEventMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ typedef std::map<uint32 /*condition id*/, GameEventFinishCondition> GameEventCon

struct GameEventData
{
GameEventData() : start(1), end(0), nextstart(0), occurence(0), length(0), holiday_id(HOLIDAY_NONE), state(GAMEEVENT_NORMAL) { }
GameEventData() : start(1), end(0), nextstart(0), occurence(0), length(0), holiday_id(HOLIDAY_NONE), state(GAMEEVENT_NORMAL), announce(0) { }
time_t start; // occurs after this time
time_t end; // occurs before this time
time_t nextstart; // after this time the follow-up events count this phase completed
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Loot/LootMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ struct Loot
// Only set for inventory items that can be right-click looted
uint32 containerID;

Loot(uint32 _gold = 0) : gold(_gold), unlootedCount(0), loot_type(LOOT_CORPSE), maxDuplicates(1), containerID(0) { }
Loot(uint32 _gold = 0) : gold(_gold), unlootedCount(0), roundRobinPlayer(0), loot_type(LOOT_CORPSE), maxDuplicates(1), containerID(0) { }
~Loot() { clear(); }

// For deleting items at loot removal since there is no backward interface to the Item()
Expand Down

0 comments on commit a827c75

Please sign in to comment.