summaryrefslogtreecommitdiff
path: root/sources/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/main.c')
-rw-r--r--sources/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sources/main.c b/sources/main.c
index 27eb631..ecd88f0 100644
--- a/sources/main.c
+++ b/sources/main.c
@@ -1,7 +1,7 @@
#include "raylib.h"
#include <stdlib.h>
#include <time.h>
-#include <stdio.h>
+#include <string.h>
int main(void)
{
@@ -96,9 +96,7 @@ int main(void)
}
if (isRunning) {
- bool (*temp)[dim] = currState;
- currState = nextState;
- nextState = temp;
+ memcpy(currState, nextState, dim * dim * sizeof(bool));
}
EndDrawing();