mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
fix(gameplay): use inline const for static EMPTY members
Use inline const for static EMPTY members to avoid ODR and linker issues. Add missing block_manager.hpp includes in gameplay sources.
This commit is contained in:
@@ -15,6 +15,7 @@ ItemManager::ItemManager() {}
|
||||
|
||||
ItemManager& ItemManager::instance() {
|
||||
static ItemManager inst;
|
||||
|
||||
return inst;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user