1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix various code issues found by cppcheck (#7741)

Mapgen Singlenode: Remove 'flags' that duplicates a 'class Mapgen' member.
Dungeongen: Initialise 'MMVManip *vm' to 'nullptr'.
Inventorymanager: Remove assignment error 'found = '.
This commit is contained in:
Paramat 2018-09-23 20:12:39 +01:00 committed by GitHub
parent 65af7d2fb6
commit 8543df7752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 5 deletions

View file

@ -33,8 +33,6 @@ MapgenSinglenode::MapgenSinglenode(int mapgenid,
MapgenParams *params, EmergeManager *emerge)
: Mapgen(mapgenid, params, emerge)
{
flags = params->flags;
const NodeDefManager *ndef = emerge->ndef;
c_node = ndef->getId("mapgen_singlenode");