Skip to content

Commit

Permalink
Fixed (jdoom/jheretic): Use of uninitialized variable when loading an…
Browse files Browse the repository at this point in the history
… original game save file.
  • Loading branch information
danij committed May 26, 2009
1 parent 23bae84 commit bd4a189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/jdoom/src/p_oldsvg.c
Expand Up @@ -205,7 +205,7 @@ static void SV_ReadMobj(void)
float pos[3], mom[3], radius, height, floorz, ceilingz;
angle_t angle;
spritenum_t sprite;
int frame, valid, type, ddflags;
int frame, valid, type, ddflags = 0;
mobj_t *mo;
mobjinfo_t* info;

Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/jheretic/src/p_oldsvg.c
Expand Up @@ -225,7 +225,7 @@ static void SV_v13_ReadMobj(void)
{
angle_t angle;
spritenum_t sprite;
int frame, valid, type, ddflags;
int frame, valid, type, ddflags = 0;
float pos[3], mom[3], floorz, ceilingz, radius, height;
mobj_t *mo;
mobjinfo_t* info;
Expand Down

0 comments on commit bd4a189

Please sign in to comment.