From 283f3f58f561c1ba79f32cb84489a8f81a5cf9ea Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Sun, 22 Oct 2023 22:29:52 +0200 Subject: [PATCH] - [FIX] Ja funcionen els passwords --- source/gamestate_password.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gamestate_password.cpp b/source/gamestate_password.cpp index a1cd404..6880c0e 100644 --- a/source/gamestate_password.cpp +++ b/source/gamestate_password.cpp @@ -32,6 +32,7 @@ namespace gamestate { exit = password::eixir::no; for (int i=0; i<10; ++i) password[i] = 32; + password[10] = 0; indice = 0; // Carrega el gif del fondo @@ -117,6 +118,7 @@ namespace gamestate const int getFaseFromPassword() { + password[10] = 0; int filesize = 0; const char *buffer = file::getFileBuffer("offsets.bal", &filesize);