Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamCarIdx in irsdkSharp.Serialization.Models.Fastest.Data #60

Open
Picpuscrew opened this issue Sep 1, 2023 · 0 comments
Open

CamCarIdx in irsdkSharp.Serialization.Models.Fastest.Data #60

Picpuscrew opened this issue Sep 1, 2023 · 0 comments

Comments

@Picpuscrew
Copy link

Hi.

I noticed that the CamCarIdx returned by irsdkSharp.Serialization.Models.Fastest.Data(sdk).CamCarIdx is an int[64] when it should be an int.

in the dependency i see at line 196 of irsdkSharp.Serialization.Models.Fastest.Data:

public int[] CamCarIdx
        {
            get
            {
                if (_headers.TryGetValue("CamCarIdx", out var value))
                {
                    _fileView.ReadArray(_sdk.Header.Offset + value.Offset, _camCarIdx, 0, 64);
                }

                return _camCarIdx;
            }
        }

When in irsdkSharp.Serialization.Models.Data:

public int CamCarIdx
        {
            get
            {
                if (!_camCarIdx.HasValue)
                {
                    _camCarIdx = ValueSerializer.GetIntValue("CamCarIdx", _data, _headers);
                }

                return _camCarIdx.Value;
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant