mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 20:31:50 +00:00
In Move_Calc() and AngleMove_Calc() add a sanity check to *func.
This is the same as in baseq2 and xatrix. This was reported by maraakate in yquake2 issue #160.
This commit is contained in:
parent
23cbffbd39
commit
d5fbc8c0f1
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ Move_Begin(edict_t *ent)
|
|||
void
|
||||
Move_Calc(edict_t *ent, vec3_t dest, void (*func)(edict_t *))
|
||||
{
|
||||
if (!ent)
|
||||
if (!ent || !func)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ AngleMove_Begin(edict_t *ent)
|
|||
void
|
||||
AngleMove_Calc(edict_t *ent, void (*func)(edict_t *))
|
||||
{
|
||||
if (!ent)
|
||||
if (!ent || !func)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue