client.cpp: typo fix and break; fix to make some compilers happy
authorLoic Blot <loic.blot@unix-experience.fr>
Fri, 13 Mar 2015 21:08:41 +0000 (22:08 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Fri, 13 Mar 2015 21:08:48 +0000 (22:08 +0100)
src/client.cpp

index dce89eb1c56e9ea503e2932786012b021e85bdce..7d2fab1793a2535e5ef29b8fe2b0d49e5919f57b 100644 (file)
@@ -951,7 +951,7 @@ void Client::interact(u8 action, const PointedThing& pointed)
 {
        if(m_state != LC_Ready) {
                errorstream << "Client::interact() "
-                               "cancelled (not connected)"
+                               "Canceled (not connected)"
                                << std::endl;
                return;
        }
@@ -1296,6 +1296,7 @@ Inventory* Client::getInventory(const InventoryLocation &loc)
        break;
        default:
                FATAL_ERROR("Invalid inventory location type.");
+               break;
        }
        return NULL;
 }