mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Create empty default constructor for MapNode
This commit is contained in:
parent
2f0a8f1c3e
commit
805c8e51e5
5 changed files with 21 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue