From 082d47d20ff3955ba6e088bc9a9028832c167b8f Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Mon, 10 Sep 2018 14:31:49 -0700 Subject: [PATCH] Set the correct assert in replacment of the unecessary if branch --- libraries/gpu/src/gpu/Batch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gpu/src/gpu/Batch.h b/libraries/gpu/src/gpu/Batch.h index bb38379a66..b49d14e5a1 100644 --- a/libraries/gpu/src/gpu/Batch.h +++ b/libraries/gpu/src/gpu/Batch.h @@ -417,7 +417,7 @@ public: } const Data& get(uint32 offset) const { - assert((offset >= _items.size())); + assert((offset < _items.size())); return (_items.data() + offset)->_data; }