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:
+2
-4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user