mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(common): add defination of COMMON::Utils::instance_
This commit is contained in:
@@ -12,11 +12,13 @@ namespace UNO::COMMON {
|
||||
return gen_;
|
||||
}
|
||||
|
||||
Utils* Utils::instance_ = nullptr;
|
||||
|
||||
Utils *Utils::getInstance() {
|
||||
if (Utils::instance_ == nullptr) {
|
||||
Utils::instance_ = new Utils();
|
||||
if (instance_ == nullptr) {
|
||||
instance_ = new Utils();
|
||||
}
|
||||
return Utils::instance_;
|
||||
return instance_;
|
||||
}
|
||||
Random &Utils::getRandom() {
|
||||
return this->random_;
|
||||
|
||||
Reference in New Issue
Block a user