From dde52002637b3639d4505a17c062ccd4b2c7e799 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Thu, 15 Sep 2016 20:48:48 +0200 Subject: [PATCH] [apps/graph] Remove an undefined order Change-Id: If73735421518adab5b1efe184e675fe2966d612b --- apps/graph/function_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/graph/function_store.cpp b/apps/graph/function_store.cpp index 5c2d0c277..5f33d0122 100644 --- a/apps/graph/function_store.cpp +++ b/apps/graph/function_store.cpp @@ -20,7 +20,8 @@ Graph::Function * Graph::FunctionStore::functionAtIndex(int i) { void Graph::FunctionStore::pushFunction(const char * functionText) { assert(m_numberOfFunctions < k_maxNumberOfFunctions); - m_functions[m_numberOfFunctions++] = Function(functionText, defaultColors[m_numberOfFunctions%numberOfDefaultColors]); + m_functions[m_numberOfFunctions] = Function(functionText, defaultColors[m_numberOfFunctions%numberOfDefaultColors]); + m_numberOfFunctions++; } int Graph::FunctionStore::numberOfFunctions() {