Fix uninitialized read of Engine::dt early after startup

This commit is contained in:
Tamás Bálint Misius 2023-03-02 20:55:48 +01:00
parent 369dadf81e
commit a2c7242c7c
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -31,6 +31,7 @@ Engine::Engine():
maxWidth(0), maxWidth(0),
maxHeight(0) maxHeight(0)
{ {
SetFps(FpsLimit); // populate dt with whatever that makes any sort of sense
} }
Engine::~Engine() Engine::~Engine()