diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-10-13 22:54:50 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-14 17:04:59 (GMT) |
| commit | 633c3da4016f2810ae5a8f98ee8ea0979a28d9ea (patch) | |
| tree | 6dd5f808f8b8c4e4cb9bd657e131d725499bc88d /src | |
| parent | 8e877594c9f661c668606e99f078055d6babfd67 (diff) | |
| download | powder-633c3da4016f2810ae5a8f98ee8ea0979a28d9ea.zip powder-633c3da4016f2810ae5a8f98ee8ea0979a28d9ea.tar.gz | |
Fix crash with abnormal ICE ctype
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c index 8da1bbf..a427acc 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1847,7 +1847,7 @@ void update_particles_i(pixel *vid, int start, int inc) if (ptransitions[t].tht!=PT_NUM) t = ptransitions[t].tht; else if (t==PT_ICEI) { - if (parts[i].ctype&&parts[i].ctype!=PT_ICEI) { + if (parts[i].ctype>0&&parts[i].ctype<PT_NUM&&parts[i].ctype!=PT_ICEI) { if (ptransitions[parts[i].ctype].tlt==PT_ICEI&&pt<=ptransitions[parts[i].ctype].tlv) s = 0; else { t = parts[i].ctype; |
