BlockHandler: no dynamic allocation (#4862)
* BlockHandler: no dynamic allocation
This commit is contained in:
@@ -406,7 +406,9 @@ void cItem::Empty()
|
||||
|
||||
|
||||
|
||||
cBlockHandler * cBlockHandler::CreateBlockHandler(BLOCKTYPE a_BlockType)
|
||||
cBlockHandler & cBlockHandler::GetBlockHandler(BLOCKTYPE a_BlockType)
|
||||
{
|
||||
return new cBlockHandler(a_BlockType);
|
||||
// Dummy handler.
|
||||
static cBlockHandler Handler(E_BLOCK_AIR);
|
||||
return Handler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user