mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
guess: Remove an obsolete workaround
dup_params() has taken a const argument for some time.
This commit is contained in:
8
guess.c
8
guess.c
@ -88,13 +88,7 @@ static bool game_fetch_preset(int i, char **name, game_params **params)
|
||||
return false;
|
||||
|
||||
*name = dupstr(guess_presets[i].name);
|
||||
/*
|
||||
* get round annoying const issues
|
||||
*/
|
||||
{
|
||||
game_params tmp = guess_presets[i].params;
|
||||
*params = dup_params(&tmp);
|
||||
}
|
||||
*params = dup_params(&guess_presets[i].params);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user