aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp4
1 files changed, 2 insertions, 2 deletions
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<uint32_t>(in_height);
i++;
continue;