Fading soungs: Fix client crash on older servers
authorSmallJoker <mk939@ymail.com>
Wed, 3 May 2017 11:48:46 +0000 (13:48 +0200)
committerSmallJoker <mk939@ymail.com>
Wed, 3 May 2017 11:48:46 +0000 (13:48 +0200)
src/network/clientpackethandler.cpp

index c3626158e18a85f6ecec63889179f327d55ba1c4..0dd09c6d19bb803c0f47fa41eaa747ab48c87c5e 100644 (file)
@@ -780,7 +780,7 @@ void Client::handleCommand_PlaySound(NetworkPacket* pkt)
 
        try {
                *pkt >> fade;
-       } catch (SerializationError &e) {};
+       } catch (PacketError &e) {};
 
        // Start playing
        int client_id = -1;