Skip to content

Commit

Permalink
Fixed: Clientside null pointer access
Browse files Browse the repository at this point in the history
When applying momentum impulses, check that the mobj
is valid.
  • Loading branch information
skyjake committed Aug 28, 2011
1 parent 1ef61f9 commit 3aa110f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/d_netcl.c
Expand Up @@ -269,7 +269,7 @@ void NetCl_MobjImpulse(Reader* msg)
mobj_t* clmo = ClPlayer_ClMobj(CONSOLEPLAYER);
thid_t id = 0;

if(!mo) return;
if(!mo || !clmo) return;

id = Reader_ReadUInt16(msg);
if(id != clmo->thinker.id)
Expand Down

0 comments on commit 3aa110f

Please sign in to comment.