diff options
Diffstat (limited to 'src/Bindings/LuaFunctions.h')
-rw-r--r-- | src/Bindings/LuaFunctions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/LuaFunctions.h b/src/Bindings/LuaFunctions.h index b17d7d497..d32322384 100644 --- a/src/Bindings/LuaFunctions.h +++ b/src/Bindings/LuaFunctions.h @@ -6,7 +6,7 @@ inline unsigned int GetTime() { // NB: For caveats, please see https://stackoverflow.com/a/14505248 - return static_cast<unsigned int>(std::chrono::seconds(time(0)).count()); + return static_cast<unsigned int>(std::chrono::seconds(time(nullptr)).count()); } // tolua_end |