Add constructor to prevent bad value from being in the overlay's state.
This commit is contained in:
@@ -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++)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
class RoomInfoDisplay : public ActorFrame
|
||||
{
|
||||
public:
|
||||
RoomInfoDisplay();
|
||||
~RoomInfoDisplay();
|
||||
virtual void Load( RString sType );
|
||||
virtual void Update( float fDeltaTime );
|
||||
|
||||
Reference in New Issue
Block a user