Create cheat group only once

This commit is contained in:
OV2 2018-05-01 00:01:39 +02:00
parent 25fa85bce4
commit 9d9a9e2f05
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ int S9xAddCheatGroup (const char *name, const char *cheat)
if (g.c.size () == 0)
return -1;
Cheat.g.push_back (S9xCreateCheatGroup (name, cheat));
Cheat.g.push_back (g);
return Cheat.g.size () - 1;
}