ddnet/src/engine/warning.h
Robert Müller 0512e65dbe 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.
2024-01-16 20:12:25 +01:00

17 lines
297 B
C

#ifndef ENGINE_WARNING_H
#define ENGINE_WARNING_H
struct SWarning
{
SWarning() = default;
SWarning(const char *pMsg);
SWarning(const char *pTitle, const char *pMsg);
char m_aWarningTitle[128] = "";
char m_aWarningMsg[256] = "";
bool m_WasShown = false;
bool m_AutoHide = true;
};
#endif