6fdd213
--- colobot-0.2.0--orig/src/ui/controls/list.cpp	2021-08-21 22:57:34.000000000 +0200
6fdd213
+++ colobot-0.2.0--patched/src/ui/controls/list.cpp	2022-02-20 02:25:45.319049328 +0100
6fdd213
@@ -660,11 +660,17 @@
6fdd213
         m_totalLine = i+1;  // expands the list
6fdd213
 
6fdd213
     m_items.resize(m_totalLine);
6fdd213
     if ( name.empty() )
6fdd213
+    {
6fdd213
+#pragma GCC diagnostic ignored "-Wrestrict"
6fdd213
         m_items[i].text =  " ";
6fdd213
-    else
6fdd213
+#pragma GCC diagnostic pop
6fdd213
+    } 
6fdd213
+    else 
6fdd213
+    {
6fdd213
         m_items[i].text = name;
6fdd213
+    }
6fdd213
 
6fdd213
     UpdateButton();
6fdd213
     UpdateScroll();
6fdd213
 }