diff --git a/main/source/mod/AvHNetworkMessages.cpp b/main/source/mod/AvHNetworkMessages.cpp index aead7fd..6a35c75 100644 --- a/main/source/mod/AvHNetworkMessages.cpp +++ b/main/source/mod/AvHNetworkMessages.cpp @@ -1619,7 +1619,7 @@ union float_converter WRITE_COORD( particle_template.GetGenerationEntityParameter() ); WRITE_BYTE( particle_template.GetStartingVelocityShape() ); particle_template.GetStartingVelocityParams( vel_params ); - for( int counter = 0; counter < 8; counter++ ) { WRITE_COORD( vel_params[counter] ); } + for( int counter = 0; counter < 8; counter++ ) { WRITE_LONG( vel_params[counter] ); } particle_template.GetGravity( gravity ); for( int counter = 0; counter < 8; counter++ ) { WRITE_COORD( gravity[counter] ); } WRITE_COORD( particle_template.GetMaxAlpha() ); @@ -1934,7 +1934,7 @@ const int kEntHierFlagDeletion = 0x02; NewItems.clear(); OldItems.clear(); int amnt_read = 0; - int short_data, long_data; + int short_data, long_data = 0; BEGIN_READ( buffer, size ); while( amnt_read < size ) {