From 924fd375ffef3e2bd78a62589d7d3c5e42978027 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 14 Aug 2024 20:23:18 +0200 Subject: [PATCH] fix: el truncat de la tabla de records estava "mal" en stack overflow. arreglat per mi llegint els hints de les funcions --- source/manage_hiscore_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/manage_hiscore_table.cpp b/source/manage_hiscore_table.cpp index 096dd4b..e3e7650 100644 --- a/source/manage_hiscore_table.cpp +++ b/source/manage_hiscore_table.cpp @@ -40,9 +40,9 @@ void ManageHiScoreTable::add(hiScoreEntry_t entry) sort(); // Deja solo las 10 primeras entradas - if ((int)table->size() >= 10) + if ((int)table->size() > 10) { - table->resize(table->size() - 10); + table->resize(10); } }