Skip to content

Commit 234c30c

Browse files
committed
Server: tick property fix for _x32
1 parent 0ead9b5 commit 234c30c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

VCMP-LUA/vcmpWrap/Classes/Server.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,9 +1331,7 @@ void Server::Init(sol::state* L) {
13311331
);
13321332

13331333
#ifdef _x32
1334-
ServerTable["tickCount"] = []() -> uint32_t {
1335-
return static_cast<uint32_t>(GetCurrentSysTime());
1336-
};
1334+
usertype["tick"] = sol::property([]() -> uint32_t { return static_cast<uint32_t>(GetCurrentSysTime()) });
13371335
#else
13381336
usertype["tick"] = sol::property([]() -> uint64_t { return GetCurrentSysTime(); });
13391337
#endif

0 commit comments

Comments
 (0)