fix: ClueFinder now deallocates if not singleton
This commit is contained in:
parent
e60cbb94b6
commit
2710ae78c2
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ void ClueFinder::_bind_methods() {}
|
|||
void ClueFinder::enter_tree() {
|
||||
if (singleton_instance == nullptr) {
|
||||
singleton_instance = this;
|
||||
} else {
|
||||
queue_free();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue