Removing a timer that isn't running is a success.

This commit is contained in:
Sam Lantinga
2024-08-04 19:45:18 -07:00
parent b1af91e788
commit 795499a529
2 changed files with 3 additions and 7 deletions

View File

@@ -381,11 +381,7 @@ int SDL_RemoveTimer(SDL_TimerID id)
}
SDL_free(entry);
}
if (canceled) {
return 0;
} else {
return SDL_SetError("Timer not found");
}
return 0;
}
#else