From 7399e3203d7f737a3a602a63b5a73252c6aad969 Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Mon, 20 Aug 2007 02:22:07 +0000 Subject: [PATCH] Add constructor to prevent bad value from being in the overlay's state. --- stepmania/src/RoomInfoDisplay.cpp | 6 ++++++ stepmania/src/RoomInfoDisplay.h | 1 + 2 files changed, 7 insertions(+) diff --git a/stepmania/src/RoomInfoDisplay.cpp b/stepmania/src/RoomInfoDisplay.cpp index 257b72fc21..2d0f9e59b9 100644 --- a/stepmania/src/RoomInfoDisplay.cpp +++ b/stepmania/src/RoomInfoDisplay.cpp @@ -15,6 +15,12 @@ static LocalizedString SONG_SUB_TITLE( "RoomInfoDisplay", "Song Subtitle:" ); static LocalizedString SONG_ARTIST( "RoomInfoDisplay", "Song Artist:" ); static LocalizedString PLAYERS( "RoomInfoDisplay", "Players" ); +RoomInfoDisplay::RoomInfoDisplay() : + m_state( OPEN ) +{ + //No code +} + RoomInfoDisplay::~RoomInfoDisplay() { for (size_t i = 0; i < m_playerList.size(); i++) diff --git a/stepmania/src/RoomInfoDisplay.h b/stepmania/src/RoomInfoDisplay.h index 13b723dbdc..7391d125a7 100644 --- a/stepmania/src/RoomInfoDisplay.h +++ b/stepmania/src/RoomInfoDisplay.h @@ -7,6 +7,7 @@ class RoomInfoDisplay : public ActorFrame { public: + RoomInfoDisplay(); ~RoomInfoDisplay(); virtual void Load( RString sType ); virtual void Update( float fDeltaTime );