- Added missing NULL pointer checks to Karate Chris's latest changes.

SVN r746 (trunk)
This commit is contained in:
Christoph Oelckers 2008-02-14 15:48:31 +00:00
parent b53834a72f
commit 0d217fd4c6

View file

@ -903,10 +903,13 @@ FUNC(LS_Thing_SetSpecial) // [BC]
{
if (arg0 == 0)
{
it->special = arg1;
it->args[0] = arg2;
it->args[1] = arg3;
it->args[2] = arg4;
if (it != NULL)
{
it->special = arg1;
it->args[0] = arg2;
it->args[1] = arg3;
it->args[2] = arg4;
}
}
else
{
@ -1522,8 +1525,11 @@ FUNC(LS_Thing_SetTranslation)
if (arg0 == 0)
{
ok = true;
it->Translation = range==0? it->GetDefault()->Translation : range;
if (it != NULL)
{
ok = true;
it->Translation = range==0? it->GetDefault()->Translation : range;
}
}
else
{