From 378e5cfd22ab68d7af8257dab19533d09372eb4f Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 26 Jun 2025 13:23:34 +0200 Subject: [PATCH] fix: shuffle algorithm; was messing up the data --- src/game/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game.c b/src/game/game.c index 4a627f4..bbe412a 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -27,7 +27,7 @@ static void shuffle(void* restrict ptr, size_t nmemb, size_t membs) { void* ptrj = (u8*)ptr + j * membs; memcpy(dat, ptri, membs); memcpy(ptri, ptrj, membs); - memcpy(ptrj, ptri, membs); + memcpy(ptrj, dat, membs); } }