Skip to content

Commit

Permalink
MTB: Fixed issue when saving models
Browse files Browse the repository at this point in the history
  • Loading branch information
Greavesy1899 committed Oct 12, 2023
1 parent 993f9f6 commit 0fc7dcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Mafia2Libs/Utils/Helpers/VectorUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ public static Half2 ReadFromFile(BinaryReader reader)

public static void WriteToFile(this Half2 half, BinaryWriter writer)
{
writer.Write(half.X);
writer.Write(half.Y);
// Force them to be written as floats, works better with prior .NET7 behaviour
writer.Write((float)half.X);
writer.Write((float)half.Y);
}

}
Expand Down

0 comments on commit 0fc7dcf

Please sign in to comment.