Fix uninitialized use of "last_time"
Set "last_time" to current time at declaration time, so that it holds at least something by the time it is used.
This commit is contained in:
parent
ff5029b867
commit
30db614d32
|
@ -313,7 +313,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
/* help keeping track of time */
|
||||
unsigned int last_time;
|
||||
unsigned int last_time = SDL_GetTicks();
|
||||
unsigned int current_time;
|
||||
|
||||
/* keep file change polling rate under control */
|
||||
|
|
Loading…
Reference in a new issue