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

This commit is contained in:
Sam Lantinga committed 2024-08-04 20:00:13 -07:00
1 parent b1af91e788
commit 795499a529
2 files changed
+3 -7

No files matched your search

+1 -5
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