summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaFunctions.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaFunctions.h2
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