Skip to content

Commit

Permalink
StateRecorder: use array setters
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 25, 2025
1 parent d5f060f commit feb85a8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -125,7 +125,7 @@ public void readRVec3(RVec3 inOut) {
long recorderVa = va();
double[] tmpDoubles = inOut.toArray();
readRVec3(recorderVa, tmpDoubles);
inOut.set(tmpDoubles[0], tmpDoubles[1], tmpDoubles[2]);
inOut.set(tmpDoubles);
}

/**
Expand All @@ -150,7 +150,7 @@ public void readVec3(Vec3 inOut) {
long recorderVa = va();
float[] storeFloats = inOut.toArray();
readVec3(recorderVa, storeFloats);
inOut.set(storeFloats[0], storeFloats[1], storeFloats[2]);
inOut.set(storeFloats);
}

/**
Expand Down

0 comments on commit feb85a8

Please sign in to comment.