diff --git a/src/items/attachment.cpp b/src/items/attachment.cpp index e7567c08f..f6919d166 100644 --- a/src/items/attachment.cpp +++ b/src/items/attachment.cpp @@ -285,7 +285,9 @@ void Attachment::rewindTo(BareNetworkString *buffer) return; } - int16_t ticks_left = buffer->getUInt16(); + int16_t ticks_left = 0; + if (new_type != ATTACH_NOTHING) + ticks_left = buffer->getUInt16(); // Now it is a new attachment: if (type == (ATTACH_BOMB | 64)) // we have previous owner information