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

fix: allow integers and floats in integer serialization #412

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

LordMidas
Copy link
Member

In vanilla ser/de functions there are cases where a float is ser/deserialized as an integer. We need to allow this behavior in our emulators otherwise things such as Combat Simulator throw exceptions when trying to ser/de players using MSU ser/de emulators.

The changes in this PR cause there to be no exception, but we still print an error to the log for the unexpected data type.

@LordMidas LordMidas requested review from TaroEld and Enduriel August 30, 2024 01:53
Copy link
Member

@Enduriel Enduriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate that this is the case but sure

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

Successfully merging this pull request may close these issues.

2 participants