Browse Source

Fix SDL_GetDaysInMonth() num days in january

Petar Popovic 11 months ago
parent
commit
dec872bdd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/time/SDL_time.c

+ 1 - 1
src/time/SDL_time.c

@@ -90,7 +90,7 @@ void SDL_QuitTime()
 int SDL_GetDaysInMonth(int year, int month)
 {
     static const int DAYS_IN_MONTH[] = {
-        30, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
+        31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
     };
 
     if (month < 1 || month > 12) {