diff --git a/core/src/com/riiablo/codec/D2S.java b/core/src/com/riiablo/codec/D2S.java index 4c6c16fb..8c46396d 100644 --- a/core/src/com/riiablo/codec/D2S.java +++ b/core/src/com/riiablo/codec/D2S.java @@ -715,7 +715,8 @@ public class D2S { assert socket.location == Location.SOCKET; } } - assert BufferUtils.lookahead(buffer, SECTION_FOOTER); + boolean lookahead = BufferUtils.lookahead(buffer, SECTION_FOOTER); + assert lookahead; if (!consumeFooter) buffer.reset(); return this; }