diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 9e060b5e4..6b5a508be 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -130,7 +130,7 @@ int update_PIPE(UPDATE_FUNC_ARGS) { if (x+rx>=0 && y+ry>=0 && x+rx>8].ctype; if ((cr&0xFF)==PT_PIPE) { - if (parts[cr>>8].tmp>8].tmp; - else tctype = 0; + tctype = parts[cr>>8].tmp&0xFF; } if (tctype>=PT_NUM || tctype<0 || (cr&0xFF)==PT_PHOT) tctype = 0;