mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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:
parent
65af7d2fb6
commit
8543df7752
4 changed files with 2 additions and 5 deletions
|
@ -846,7 +846,7 @@ void ICraftAction::apply(InventoryManager *mgr,
|
|||
count_remaining--;
|
||||
|
||||
// Get next crafting result
|
||||
found = getCraftingResult(inv_craft, crafted, temp, false, gamedef);
|
||||
getCraftingResult(inv_craft, crafted, temp, false, gamedef);
|
||||
PLAYER_TO_SA(player)->item_CraftPredict(crafted, player, list_craft, craft_inv);
|
||||
found = !crafted.empty();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue