UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #3 Equipment fills completly with rifle ammo
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/3 Item 3] imported from sourceforge.net tracker on 2013-01-28 18:08:35

After a mission the equipment fills completly with
rifle-ammo (or maybe other things - dont know)
===== Comments Ported from Sourceforge =====

====== robrendell (2006-01-30 23:11:06) ======

Logged In: YES
user_id=1433173


I don't appear to be able to edit bugs, but I've fixed this
one, and in fact the fix has been in the CVS repository for
a while now.

The problem was in CL_AddWeaponAmmo, which didn't check the
amount of ammo available before loading up a gun (and
decrementing the ammo quantity). So, if you went into a
mission with more guns of a particular type than ammo for
them, you'd end up with all the guns loaded and a -ve
quantity of that ammo in ccs.eMission (and thus afterwards
ccs.eCampaign). Since the inventory was stored in bytes (=>
unsigned), you'd end up with hundreds of that type of ammo.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif