Skip to content

Commit

Permalink
Fixing a minor logic bug and cleaning up warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
authenticate committed Mar 20, 2016
1 parent df80e3a commit dc86630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/global/global_actors.cpp
Expand Up @@ -845,11 +845,14 @@ GlobalCharacter::GlobalCharacter(uint32_t id, bool initial) :

GlobalCharacter::~GlobalCharacter()
{
//
// Delete all equipment.
//

_weapon_equipped = nullptr;

for (uint32_t i = 0; i < _armor_equipped.size(); ++i) {
_armor_equipped[i] != nullptr;
_armor_equipped[i] = nullptr;
}
_armor_equipped.clear();
}
Expand Down
1 change: 1 addition & 0 deletions src/common/gui/option.h
Expand Up @@ -273,6 +273,7 @@ class OptionBox : public private_gui::GUIControl
*** because it is silly to try to represent a structure of 2 columns and 2 rows in a layout of 4 columns and 4 rows. Failure
*** to observe this requirement will result in no changes being made by this function.
**/
using private_gui::GUIControl::SetDimensions;
virtual void SetDimensions(float width, float height, uint8_t num_cols, uint8_t num_rows, uint8_t cell_cols, uint8_t cell_rows);

/** \brief Sets the options to display in this option box
Expand Down

0 comments on commit dc86630

Please sign in to comment.