Viktorovich31
Platinian
Hello! Help me please. This code increases the coins in the game. After each stage, a lot of coins are added, and after several stages, when there are a lot of coins, the game just freezes. Help fix this so that a lot of coins are not added. Or freeze this value (999999)
Code:
void (*old_set_coinCount)(void *instance, int);
void set_coinCount(void *instance, int) {
if (instance != NULL) {
}
old_set_coinCount(instance, 999999);
}