Skip to content

Commit

Permalink
Fixed write issue in NetworkedTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoTenPvP committed Jul 26, 2018
1 parent 74b9af8 commit f140dfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ private void SubmitTransform(uint clientId, Stream stream)

using (PooledBitStream writeStream = PooledBitStream.Get())
{
using (PooledBitWriter writer = PooledBitWriter.Get(stream))
using (PooledBitWriter writer = PooledBitWriter.Get(writeStream))
{

writer.WriteSinglePacked(xPos);
writer.WriteSinglePacked(yPos);
writer.WriteSinglePacked(zPos);
Expand Down

0 comments on commit f140dfa

Please sign in to comment.