Commit Diff


commit - 182a180c2e150665e19fcc92f123ce5ed17c2409
commit + d272e63dd72fac9a8205b9d7e0edf8c977eae7ce
blob - e7385de709f3c06c7c6064a3fd44b1996a2c5d92
blob + 59330fc4abc031b99ecd95e175064d740fabd755
--- src/procedures.c
+++ src/procedures.c
@@ -398,14 +398,14 @@ void broadcastPlayerMetadata (PlayerData *player) {
 
   EntityData metadata[] = {
     {
-      0,               // Index (Entity Bit Mask)
-      0,               // Type (Byte)
-      entity_bit_mask, // Value
+      0,                   // Index (Entity Bit Mask)
+      0,                   // Type (Byte)
+      { entity_bit_mask }, // Value
     },
     {
-      6,    // Index (Pose),
-      21,   // Type (Pose),
-      pose, // Value (Standing)
+      6,        // Index (Pose),
+      21,       // Type (Pose),
+      { pose }, // Value (Standing)
     }
   };
 
@@ -437,9 +437,9 @@ void broadcastMobMetadata (int client_fd, int entity_i
 
       metadata = malloc(sizeof *metadata);
       metadata[0] = (EntityData){
-        17,            // Index (Sheep Bit Mask),
-        0,             // Type (Byte),
-        (uint8_t)0x10, // Value
+        17,                // Index (Sheep Bit Mask),
+        0,                 // Type (Byte),
+        { (uint8_t)0x10 }, // Value
       };
       length = 1;