summaryrefslogtreecommitdiff
path: root/src/code/game.c
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-08-04 08:14:38 -0400
committerGitHub <noreply@github.com>2021-08-04 08:14:38 -0400
commit51111676c48851a01ba92e8bf30a894b889a1d24 (patch)
tree68edd607fc51ac0a8afcfd7970697b59c60b1a87 /src/code/game.c
parent7743e5a2c4b6d01c847dea8929c707e65e5e18b3 (diff)
Fix gcc warnings (#246)
* fix a huge amount of warnings * fix another big bunch * fix remaining warnings * Run formatter
Diffstat (limited to 'src/code/game.c')
-rw-r--r--src/code/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/game.c b/src/code/game.c
index 5159b2db2..c049d023b 100644
--- a/src/code/game.c
+++ b/src/code/game.c
@@ -176,7 +176,7 @@ void Game_ResizeHeap(GameState* gamestate, u32 size) {
size = systemMaxFree - (sizeof(ArenaNode));
}
- if (buf = Gamealloc_Alloc(alloc, size)) {
+ if ((buf = Gamealloc_Alloc(alloc, size)) != NULL) {
THA_Ct(&gamestate->heap, buf, size);
} else {
THA_Ct(&gamestate->heap, 0, 0);