Skip to content

Commit

Permalink
Fix bugs in new effects code.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Jul 7, 2015
1 parent 0c28e01 commit c3d0599
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ void processEffects()
{
bucketAddTypeToList(RENDER_EFFECT, psEffect);
}
++it;
}
++it;
}

/* Add any structure effects */
Expand Down Expand Up @@ -2276,9 +2276,9 @@ bool writeFXData(const char *fileName)
ini.setValue("lifeSpan", it->lifeSpan);
ini.setValue("radius", it->radius);

const QString &imd_name = modelName(it->imd);
if (!imd_name.isEmpty())
if (it->imd)
{
const QString &imd_name = modelName(it->imd);
ini.setValue("imd_name", imd_name);
}

Expand Down

0 comments on commit c3d0599

Please sign in to comment.