Properly initialize wxAcceleratorTable

The `wxAcceleratorTable` for the `GameArea` panel was initialized with an
array of `wxAcceleratorEntryUnicode`, while the API calls for an array
of `wxAcceleratorEntry`. This resulted in the array not being properly
interpreted by the `wxAcceleratorEntry`. This fixes the issue by using
`wxAcceleratorEntry` to instantiate the array.
This commit is contained in:
Fabrice de Gans 2023-04-21 14:58:42 -07:00 committed by Fabrice de Gans
parent 7b5d4a82d7
commit 5aa3ea92b9
1 changed files with 1 additions and 1 deletions

View File

@ -2302,7 +2302,7 @@ void MainFrame::set_global_accels()
len++;
if (len) {
wxAcceleratorEntryUnicode tab[1000];
wxAcceleratorEntry tab[1000];
for (size_t i = 0, j = 0; i < accels.size(); i++)
if (!accels[i].GetMenuItem())