Closed CodyNinja1 closed 2 months ago
This sounds like a bug - I will investigate.
Here is the GetWagonFromFileName()
function:
CMwNod@ GetWagonFromFileName(const string&in filename)
{
auto file = Fids::GetGame("GameData/Valley/Media/Trains/" + filename);
auto nod = Fids::Preload(file);
return nod;
}
Do note that only Loco.Wagon.gbx
has a non-null AccelCurve
.
This issue appears to have been a programming mistake on my end, sorry for any inconvinence.
Good to know, thanks for the update. Can you let me know what the mistake was?
My mistake was that I used ImGui's input fields incorrectly, so nothing really related to the MwFastArray itself.
For example,
CFuncKeysReal
(in MP4) hasMwFastArray<float> Ys
. Trying to modify any of this array's items has the changes reverted next frame.