Topic: Named weapon serialization of AdditionalAccuracy uses unsigned int

  • Author
  • #28111
    Avatar photoSogartar

    The serialization/deserialization of named_weapon‘s AdditionalAccuracy uses unsigned value, but it is possible to have negative values. In this case it would deserialize wrongly making a small negative number a very large positive number.


    this.m.AdditionalAccuracy = _in.readU16();

    It should use signed integer instead.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.