From 7a83a5ace14151f9591fc5125b81220e341ccd37 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 27 Mar 2023 11:45:30 -0600 Subject: vkcubepp: Fix custom height not working --- cube/cube.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index 141de207..a08541fb 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -905,8 +905,8 @@ void Demo::init(int argc, char **argv) { } if (strcmp(argv[i], "--height") == 0) { int32_t in_height = 0; - if (i < argc - 1 && sscanf(argv[i + 1], "%d", &height) == 1) { - if (height > 0) { + if (i < argc - 1 && sscanf(argv[i + 1], "%d", &in_height) == 1) { + if (in_height > 0) { height = static_cast(in_height); i++; continue; -- cgit v1.2.3