team-eternity / eternity

The Eternity Engine
http://eternity.youfailit.net/wiki/Main_Page
GNU General Public License v3.0
236 stars 37 forks source link

Suspicious arg interpretation in A_SetTics #634

Closed ioan-chera closed 1 month ago

ioan-chera commented 1 month ago

This seems wrong in A_SetTics:

int baseamt = E_ArgAsInt(args, 0, 0);
int rnd     = E_ArgAsInt(args, 1, 0);
int counter = E_ArgAsKwd(args, 2, &settickwds, 0);

Shouldn't settickwds go to arg rnd instead of counter?