mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Fix warning title being uninitialized in some cases
For some warnings a random title instead of the default title was shown because it was not initialized.
This commit is contained in:
parent
bb3bd57c0e
commit
0512e65dbe
|
@ -4,7 +4,6 @@
|
|||
|
||||
SWarning::SWarning(const char *pMsg)
|
||||
{
|
||||
str_copy(m_aWarningTitle, "");
|
||||
str_copy(m_aWarningMsg, pMsg);
|
||||
}
|
||||
SWarning::SWarning(const char *pTitle, const char *pMsg)
|
||||
|
|
|
@ -7,8 +7,8 @@ struct SWarning
|
|||
SWarning(const char *pMsg);
|
||||
SWarning(const char *pTitle, const char *pMsg);
|
||||
|
||||
char m_aWarningTitle[128];
|
||||
char m_aWarningMsg[256];
|
||||
char m_aWarningTitle[128] = "";
|
||||
char m_aWarningMsg[256] = "";
|
||||
bool m_WasShown = false;
|
||||
bool m_AutoHide = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue