1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Clean up makeScreenshot() and make message translateable

This commit is contained in:
sfan5 2025-06-04 12:15:04 +02:00 committed by SmallJoker
parent b9af44b194
commit 38255cb6bb
2 changed files with 22 additions and 23 deletions

View file

@ -20,7 +20,7 @@ inline struct tm mt_localtime()
#endif
});
struct tm ret;
struct tm ret{};
time_t t = time(NULL);
// TODO we should check if the function returns NULL, which would mean error
#ifdef _WIN32