From d57d98996384675b07e99ea33a5f35fb0ee7dc5f Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 14 Jan 2017 18:30:58 +0100 Subject: [PATCH] This one slipped through --- Aquaria/ScriptedEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/ScriptedEntity.cpp b/Aquaria/ScriptedEntity.cpp index a692a80..d811a26 100644 --- a/Aquaria/ScriptedEntity.cpp +++ b/Aquaria/ScriptedEntity.cpp @@ -199,7 +199,7 @@ void ScriptedEntity::initSegments(int numSegments, int minDist, int maxDist, std this->minDist = minDist; this->maxDist = maxDist; segments.resize(numSegments); - for (size_t i = segments.size(); i-- >= 0 ; ) + for (size_t i = segments.size(); i-- > 0 ; ) { Quad *q = new Quad; if (i == segments.size()-1)