Initialize all ghost item member (Closed #8297)

This commit is contained in:
ChillerDragon 2024-05-05 11:46:38 +08:00
parent 43c03c4d54
commit f319ed239a

View file

@ -700,11 +700,11 @@ public:
char m_aFilename[IO_MAX_PATH_LENGTH]; char m_aFilename[IO_MAX_PATH_LENGTH];
char m_aPlayer[MAX_NAME_LENGTH]; char m_aPlayer[MAX_NAME_LENGTH];
bool m_Failed; bool m_Failed = true;
int m_Time; int m_Time = 0;
int m_Slot; int m_Slot = -1;
bool m_Own; bool m_Own = false;
time_t m_Date; time_t m_Date = 0;
CGhostItem() : CGhostItem() :
m_Slot(-1), m_Own(false) { m_aFilename[0] = 0; } m_Slot(-1), m_Own(false) { m_aFilename[0] = 0; }