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 SONG_ARTIST( "RoomInfoDisplay", "Song Artist:" );
|
||||||
static LocalizedString PLAYERS( "RoomInfoDisplay", "Players" );
|
static LocalizedString PLAYERS( "RoomInfoDisplay", "Players" );
|
||||||
|
|
||||||
|
RoomInfoDisplay::RoomInfoDisplay() :
|
||||||
|
m_state( OPEN )
|
||||||
|
{
|
||||||
|
//No code
|
||||||
|
}
|
||||||
|
|
||||||
RoomInfoDisplay::~RoomInfoDisplay()
|
RoomInfoDisplay::~RoomInfoDisplay()
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < m_playerList.size(); i++)
|
for (size_t i = 0; i < m_playerList.size(); i++)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
class RoomInfoDisplay : public ActorFrame
|
class RoomInfoDisplay : public ActorFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
RoomInfoDisplay();
|
||||||
~RoomInfoDisplay();
|
~RoomInfoDisplay();
|
||||||
virtual void Load( RString sType );
|
virtual void Load( RString sType );
|
||||||
virtual void Update( float fDeltaTime );
|
virtual void Update( float fDeltaTime );
|
||||||
|
|||||||
Reference in New Issue
Block a user