Fix saving arguments in wrong order when parsing "Functions" section in gamedata

ke::HashMap doesn't keep the order the elements are added of course. Switch to a vector structure instead.
This commit is contained in:
Peace-Maker
2018-04-21 11:50:07 +02:00
parent d9778021c7
commit 3e2471f93a
3 changed files with 51 additions and 40 deletions
+2 -4
View File
@@ -131,12 +131,10 @@ cell_t Native_DHookCreateFromConf(IPluginContext *pContext, const cell_t *params
}
// Push all the arguments.
auto args = sig->args.iter();
while (!args.empty())
for (ArgumentInfo &arg : sig->args)
{
ParamInfo info = args->value;
ParamInfo info = arg.info;
setup->params.push_back(info);
args.next();
}
// Create the handle to hold this setup.