From 0ac85e0dafef93683bf57fde9fa98a0ed5a88485 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sat, 22 Jan 2022 05:37:19 +0100 Subject: [PATCH] Linux Bugfix --- core/src/gui/smgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/gui/smgui.cpp b/core/src/gui/smgui.cpp index 5cac3122..15341c4e 100644 --- a/core/src/gui/smgui.cpp +++ b/core/src/gui/smgui.cpp @@ -384,7 +384,7 @@ namespace SmGui { // Check the type of each element for (int i = 0; i < n; i++) { - if (va_arg(args, DrawListElemType) != elements[firstId + i].type) { + if (va_arg(args, int) != (int)elements[firstId + i].type) { va_end(args); return false; } @@ -763,4 +763,4 @@ namespace SmGui { void ForceSyncForNext() { forceSyncForNext = true; } -} \ No newline at end of file +}