Skip to content

Commit

Permalink
CombatWindow dtor fix: window should be destroyed after radar (double…
Browse files Browse the repository at this point in the history
… free)
  • Loading branch information
vayerx committed Jan 18, 2014
1 parent 3295dc9 commit c41561e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/CombatWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ namespace ui
// screen areas (scene and areas that move/rotate camera)
OguiButton **areas;

std::auto_ptr<OguiWindow> win;

std::auto_ptr<CombatMessageWindow> messageWindow;
std::auto_ptr<CombatMessageWindow> timerWindow;
std::auto_ptr<CombatMessageWindow> messageWindowRight;
Expand All @@ -234,8 +236,6 @@ namespace ui
std::auto_ptr<OffscreenUnitPointers> offscreenUnitPointers;
std::auto_ptr<CombatRadar> radar;

std::auto_ptr<OguiWindow> win;

// unused std::auto_ptr<OguiButton> crosshair;
// unused std::auto_ptr<IOguiImage> crosshairImage;

Expand Down

0 comments on commit c41561e

Please sign in to comment.