mirror of
https://github.com/yquake2/rogue.git
synced 2025-02-19 18:42:21 +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
|
void
|
||||||
Move_Calc(edict_t *ent, vec3_t dest, void (*func)(edict_t *))
|
Move_Calc(edict_t *ent, vec3_t dest, void (*func)(edict_t *))
|
||||||
{
|
{
|
||||||
if (!ent)
|
if (!ent || !func)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -303,7 +303,7 @@ AngleMove_Begin(edict_t *ent)
|
||||||
void
|
void
|
||||||
AngleMove_Calc(edict_t *ent, void (*func)(edict_t *))
|
AngleMove_Calc(edict_t *ent, void (*func)(edict_t *))
|
||||||
{
|
{
|
||||||
if (!ent)
|
if (!ent || !func)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue