From e253069509f79a00d93ebc49bad4dcc51621ef22 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Thu, 14 Sep 2023 01:17:11 +0200 Subject: [PATCH] stfu dumb msvc analyzer --- Aquaria/GameEnums.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/GameEnums.cpp b/Aquaria/GameEnums.cpp index 8e06176..3cc9340 100644 --- a/Aquaria/GameEnums.cpp +++ b/Aquaria/GameEnums.cpp @@ -86,7 +86,7 @@ const char *EnumName(Layers lr) { compile_assert(Countof(s_LayerNames) == LR_MAX); - return lr < LR_MAX ? s_LayerNames[lr] : NULL; + return lr < Countof(s_LayerNames) ? s_LayerNames[lr] : NULL; } const char *s_AquariaActionNames_0[ACTION_MAX] =