mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Fix buffer overflow when when fetching typenames on freeslots
This commit is contained in:
parent
dfd05c6172
commit
9013ceeacc
1 changed files with 2 additions and 0 deletions
|
@ -236,6 +236,8 @@ static const char *MobjTypeName(const mobj_t *mobj)
|
|||
{
|
||||
if (mobj->thinker.debug_mobjtype != MT_NULL)
|
||||
{
|
||||
if (mobj->thinker.debug_mobjtype >= MT_FIRSTFREESLOT)
|
||||
return "MT_FREESLOT";
|
||||
return MOBJTYPE_LIST[mobj->thinker.debug_mobjtype];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue