mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-16 16:15:38 +02:00
assigned arch static instance instead of create a new one #4313
This commit is contained in:
parent
4014176d8e
commit
226f2c966a
2 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,7 @@ init(void* log, void* arch)
|
|||
}
|
||||
|
||||
if (g_arch == NULL) {
|
||||
g_arch = new Arch(reinterpret_cast<Arch*>(arch));
|
||||
Arch::setInstance(reinterpret_cast<Arch*>(arch));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue