Skip to content

Commit 045af16

Browse files
committed
fix: use assert instead of static assert
1 parent d326358 commit 045af16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PrimeWatch.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ void PrimeWatch::processInput() {
142142

143143
// if shift + '1', save and enable ghost 1, etc for 1-5
144144
auto keys = std::array{ GLFW_KEY_1, GLFW_KEY_2, GLFW_KEY_3, GLFW_KEY_4, GLFW_KEY_5 };
145-
static_assert(worldRenderer.playerGhosts.size() == keys.size(),
146-
"Player ghosts size must match the number of keys for ghost saving");
145+
assert(worldRenderer.playerGhosts == keys.size());
147146
for (int i = 0; i < keys.size(); i++) {
148147
if (io.KeysDown[keys[i]]) {
149148
if (io.KeyShift) {

0 commit comments

Comments
 (0)