diff options
Diffstat (limited to 'src/hexen/p_plats.c')
-rw-r--r-- | src/hexen/p_plats.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/hexen/p_plats.c b/src/hexen/p_plats.c index 0fec8f34..ced14141 100644 --- a/src/hexen/p_plats.c +++ b/src/hexen/p_plats.c @@ -224,11 +224,13 @@ void EV_StopPlat(line_t * line, byte * args) for (i = 0; i < MAXPLATS; i++) { - if ((activeplats[i])->tag = args[0]) + activeplats[i]->tag = args[0]; + + if (activeplats[i]->tag != 0) { - (activeplats[i])->sector->specialdata = NULL; - P_TagFinished((activeplats[i])->sector->tag); - P_RemoveThinker(&(activeplats[i])->thinker); + activeplats[i]->sector->specialdata = NULL; + P_TagFinished(activeplats[i]->sector->tag); + P_RemoveThinker(&activeplats[i]->thinker); activeplats[i] = NULL; return; |