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 #5702 Game crashes after mission is finished if there is only one civilian
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    RESOLVED
  • 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
The game crashes in line 272 of file cp_nation.cpp if there is only one civilian present in the mission
<source lang="c++">
assert((2 * civilianSum) - 2 != 0);
</source>

The problem occurs in campain mode after the mission result screen has been shown, when there is only one civilian in the mission.

Maybe you could ensure that there are zero or more than one civilians in each mission?

My system:
Windows 10 x64
Visual Studio 2017 (compiling x64)
Steps to reproduce this issue
The problem occurs in campain mode after the mission result screen has been shown, when there is only one civilian in the mission.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif