Revert "Initialize all ghost item member (Closed #8297)"

This reverts commit f319ed239a.

Initializing these variables with junk data doesn't seem to be an
improvement over not initializing them. It hides potential Valgrind
warnings about data accesses to uninitialized memory though.

f319ed239a (r1590801501)
This commit is contained in:
heinrich5991 2024-05-07 14:25:29 +02:00
parent df30321f52
commit 3a48b8e6cf

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 = true; bool m_Failed;
int m_Time = 0; int m_Time;
int m_Slot = -1; int m_Slot;
bool m_Own = false; bool m_Own;
time_t m_Date = 0; time_t m_Date;
CGhostItem() : CGhostItem() :
m_Slot(-1), m_Own(false) { m_aFilename[0] = 0; } m_Slot(-1), m_Own(false) { m_aFilename[0] = 0; }