mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- better add a NULL pointer check here.
This commit is contained in:
parent
d7501a1414
commit
b2f860d7ae
1 changed files with 2 additions and 2 deletions
|
@ -5406,7 +5406,7 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args, const
|
||||||
if (args[0] == 0)
|
if (args[0] == 0)
|
||||||
{
|
{
|
||||||
AActor *puff = P_LineAttack(activator, angle, range, pitch, damage, damagetype, pufftype, fhflags);
|
AActor *puff = P_LineAttack(activator, angle, range, pitch, damage, damagetype, pufftype, fhflags);
|
||||||
if (pufftid != 0)
|
if (puff != NULL && pufftid != 0)
|
||||||
{
|
{
|
||||||
puff->tid = pufftid;
|
puff->tid = pufftid;
|
||||||
puff->AddToHash();
|
puff->AddToHash();
|
||||||
|
@ -5420,7 +5420,7 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args, const
|
||||||
while ((source = it.Next()) != NULL)
|
while ((source = it.Next()) != NULL)
|
||||||
{
|
{
|
||||||
AActor *puff = P_LineAttack(source, angle, range, pitch, damage, damagetype, pufftype, fhflags);
|
AActor *puff = P_LineAttack(source, angle, range, pitch, damage, damagetype, pufftype, fhflags);
|
||||||
if (pufftid != 0)
|
if (puff != NULL && pufftid != 0)
|
||||||
{
|
{
|
||||||
puff->tid = pufftid;
|
puff->tid = pufftid;
|
||||||
puff->AddToHash();
|
puff->AddToHash();
|
||||||
|
|
Loading…
Reference in a new issue