From ac0299e5b506526611ff26f205f0450761843d0c Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Wed, 30 Mar 2022 17:41:22 -0500 Subject: [PATCH] Bugfix: 2x+ skyboxes given insufficient memory space (#372) --- src/game/skybox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/skybox.c b/src/game/skybox.c index 96cbe486..f2dd6222 100644 --- a/src/game/skybox.c +++ b/src/game/skybox.c @@ -61,7 +61,7 @@ struct Skybox { struct Skybox sSkyBoxInfo[2]; -typedef const Texture *const SkyboxTexture[80 * SKYBOX_SIZE]; +typedef const Texture *const SkyboxTexture[80 * sqr(SKYBOX_SIZE)]; extern SkyboxTexture bbh_skybox_ptrlist; extern SkyboxTexture bidw_skybox_ptrlist;