mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Added missing NULL pointer checks to Karate Chris's latest changes.
SVN r746 (trunk)
This commit is contained in:
parent
b53834a72f
commit
0d217fd4c6
1 changed files with 12 additions and 6 deletions
|
@ -902,12 +902,15 @@ FUNC(LS_Thing_SetSpecial) // [BC]
|
|||
// It can set all args and not just the first three.
|
||||
{
|
||||
if (arg0 == 0)
|
||||
{
|
||||
if (it != NULL)
|
||||
{
|
||||
it->special = arg1;
|
||||
it->args[0] = arg2;
|
||||
it->args[1] = arg3;
|
||||
it->args[2] = arg4;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AActor *actor;
|
||||
|
@ -1521,10 +1524,13 @@ FUNC(LS_Thing_SetTranslation)
|
|||
}
|
||||
|
||||
if (arg0 == 0)
|
||||
{
|
||||
if (it != NULL)
|
||||
{
|
||||
ok = true;
|
||||
it->Translation = range==0? it->GetDefault()->Translation : range;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( (target = iterator.Next ()) )
|
||||
|
|
Loading…
Reference in a new issue