mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-25 05:31:50 +00:00
add static so multiple files can each have their own Pool()
This commit is contained in:
parent
d13e72ab9d
commit
9e50610608
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ struct SOpenFile
|
|||
};
|
||||
typedef ratl::handle_pool_vs<SOpenFile, MAX_OPEN_FILES> TFilePool;
|
||||
|
||||
TFilePool& Pool()
|
||||
static TFilePool& Pool()
|
||||
{
|
||||
static TFilePool TFP;
|
||||
return TFP;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
typedef ratl::hash_pool<BLOCK_SIZE, MAX_HASH> TStrPool;
|
||||
|
||||
|
||||
TStrPool& Pool()
|
||||
static TStrPool& Pool()
|
||||
{
|
||||
static TStrPool TSP;
|
||||
return TSP;
|
||||
|
|
Loading…
Reference in a new issue