From c7be4a6b8bd14a39c2bafaf1fca3d7f93fe9220f Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Mon, 1 Apr 2019 05:46:09 -0700 Subject: [PATCH] Fixed bug where required code was run in an assertion and not running on android --- core/src/com/riiablo/codec/D2S.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }