diff --git a/SQCSim-common/netprotocol.h b/SQCSim-common/netprotocol.h index f724226..d8a0b6a 100644 --- a/SQCSim-common/netprotocol.h +++ b/SQCSim-common/netprotocol.h @@ -38,24 +38,24 @@ namespace netprot { /* Sous-structures */ struct Keys { - bool forward, - backward, - left, - right, - jump, - shoot, - block; + bool forward = false, + backward = false, + left = false, + right = false, + jump = false, + shoot = false, + block = false; }; struct States { - bool jumping, - shooting, - hit, - powerup, - dead, - still, - jumpshot, - running; + bool jumping = false, + shooting = false, + hit = false, + powerup = false, + dead = false, + still = false, + jumpshot = false, + running = false; }; /* Structures de paquets */