diff options
Diffstat (limited to 'tests/Generating')
-rw-r--r-- | tests/Generating/Stubs.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Generating/Stubs.cpp b/tests/Generating/Stubs.cpp index 6fbcf70fb..2982457ab 100644 --- a/tests/Generating/Stubs.cpp +++ b/tests/Generating/Stubs.cpp @@ -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; } |