diff options
| author | Charles Giessen <charles@lunarg.com> | 2023-03-27 11:45:30 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-03-27 13:42:12 -0600 |
| commit | 7a83a5ace14151f9591fc5125b81220e341ccd37 (patch) | |
| tree | 5eea96ac649be9e392dd4639f7f02634885786b8 /cube/cube.cpp | |
| parent | 211fec7e9af1af7ce13c31885537bc73c4862b23 (diff) | |
| download | usermoji-7a83a5ace14151f9591fc5125b81220e341ccd37.tar.xz | |
vkcubepp: Fix custom height not working
Diffstat (limited to 'cube/cube.cpp')
| -rw-r--r-- | cube/cube.cpp | 4 |
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; |
