mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- don't use 'countof' to iterate through a static array that's defined inside a function. Some GCC versions apparently do not like that.
This commit is contained in:
parent
a013703e1c
commit
7d2ab461d9
1 changed files with 2 additions and 1 deletions
|
@ -433,6 +433,7 @@ void FGameConfigFile::DoKeySetup(const char *gamename)
|
|||
{ "Bindings", &Bindings },
|
||||
{ "DoubleBindings", &DoubleBindings },
|
||||
{ "AutomapBindings", &AutomapBindings },
|
||||
NULL, NULL
|
||||
};
|
||||
const char *key, *value;
|
||||
|
||||
|
@ -442,7 +443,7 @@ void FGameConfigFile::DoKeySetup(const char *gamename)
|
|||
|
||||
C_SetDefaultBindings ();
|
||||
|
||||
for (int i = 0; i < countof(binders); ++i)
|
||||
for (int i = 0; binders[i].label != NULL; ++i)
|
||||
{
|
||||
strncpy(subsection, binders[i].label, sublen);
|
||||
if (SetSection(section))
|
||||
|
|
Loading…
Reference in a new issue