aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 11:30:18 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 11:30:18 +0200
commiteba98e4e1adcf3ce11e5934e2dce54f29aef1e0a (patch)
treed51d51eb2d48208df1cfdf6eb0bd40a928d6243c /src/keeper.h
parent8745a54f88f31cd51dc86c96039ebe0b3e98f5ea (diff)
downloadlanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.tar.gz
lanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.tar.bz2
lanes-eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a.zip
Make Unique even stronger
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.h b/src/keeper.h
index 74bdbf2..7e3e1fa 100644
--- a/src/keeper.h
+++ b/src/keeper.h
@@ -16,7 +16,7 @@ DECLARE_UNIQUE_TYPE(KeeperIndex, int);
16struct Keeper 16struct Keeper
17{ 17{
18 std::mutex mutex; 18 std::mutex mutex;
19 KeeperState K{ nullptr }; 19 KeeperState K{ static_cast<lua_State*>(nullptr) };
20 20
21 [[nodiscard]] static void* operator new[](size_t size_, Universe* U_) noexcept; 21 [[nodiscard]] static void* operator new[](size_t size_, Universe* U_) noexcept;
22 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 22 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception