mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-24 08:52:51 +02:00
Fix crash with abnormal ICE ctype
This commit is contained in:
committed by
Simon Robertshaw
parent
8e877594c9
commit
633c3da401
@@ -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;
|
||||
|
Reference in New Issue
Block a user