diff --git a/src/client/game.cpp b/src/client/game.cpp index 1ad670290..ebfc3f1c8 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2719,8 +2719,7 @@ void Game::handleClientEvent_ShowFormSpec(ClientEvent *event, CameraOrientation if (fs.formname->empty() && !fs.formspec->empty()) { m_game_formspec.showPlayerInventory(fs.formspec); } else { - m_game_formspec.showFormSpec(*fs.formspec, - *fs.formname); + m_game_formspec.showFormSpec(*fs.formspec, *fs.formname); } delete fs.formspec; diff --git a/src/client/game_formspec.cpp b/src/client/game_formspec.cpp index e9c3a1659..407b1d9d9 100644 --- a/src/client/game_formspec.cpp +++ b/src/client/game_formspec.cpp @@ -334,7 +334,7 @@ void GameFormSpec::showPlayerInventory(const std::string *fs_override) player->inventory_formspec_override.clear(); } - // If preventedd by Client-Side Mods + // If prevented by Client-Side Mods if (m_client->modsLoaded() && m_client->getScript()->on_inventory_open(m_client->getInventory(inventoryloc))) return;