From 805c8e51e5dd4dfad381a0d40b4388b5de90becf Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Sat, 17 Jan 2015 19:19:26 +1000 Subject: Create empty default constructor for MapNode --- src/test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index a9ec6ffbb..80494e07a 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -855,9 +855,8 @@ struct TestMapNode: public TestBase { void Run(INodeDefManager *nodedef) { - MapNode n; + MapNode n(CONTENT_AIR); - // Default values UASSERT(n.getContent() == CONTENT_AIR); UASSERT(n.getLight(LIGHTBANK_DAY, nodedef) == 0); UASSERT(n.getLight(LIGHTBANK_NIGHT, nodedef) == 0); -- cgit v1.2.3