1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Initialize the struct

This commit is contained in:
Mathieu Schroeter 2017-10-23 19:29:23 +02:00
parent c36e6395dc
commit e8f3fc7e37

View File

@ -4564,6 +4564,8 @@ CEvent::ReadInfo ()
if (file == nullptr)
goto error;
SDL_memset (&info, 0, sizeof (info));
nb = fread (&info, sizeof (DescInfo), 1, file);
if (nb < 1)
goto error;