Topic: Named weapon serialization of AdditionalAccuracy uses unsigned int

  • Author
    Posts
  • #28111
    Avatar photoSogartar
    Participant

    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.

    _out.writeU16(this.m.AdditionalAccuracy);

    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.