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 #2846 Segmentation fault after a rightclick on a building in a bas
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
    Campaign
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    6. Vital
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/2846 Item 2846] imported from sourceforge.net tracker on 2013-01-28 19:50:51

C::B displays a Segmentation fault in B_IsBuildingDestroyable(cp_base.c) in 2 of my 8 bases after a rightclick in the base map.
In the two bases there is a large building (large hangar or workshop) in the lower right corner of the map.

The actual error happens in B_GetNeighbours(cp_base.c) when the following code
/* South */
if (y < BASE_SIZE - building->size[1] && B_GetBuildingAt(base, i, y + building->size[1]) != NULL)
LIST_AddPointer(&neighbours, (void*)B_GetBuildingAt(base, i, y + building->size[1]));
adds a building to neighbours. With i == 5, y == 3, x == 4 and building->size[1] == 1;
===== Comments Ported from Sourceforge =====

====== geever (2011-04-30 11:53:23) ======

Please upload your savegame.

-geever
====== geever (2011-04-30 12:08:39) ======

I can&#039;t reproduce it.

X shouldn&#039;t be 4 in case of a 2x1 sized building. It must be an incompatible/broken savegame. Maybe from time when X and Y coordinates were swapped in some codeparts.

-geever
====== dodon (2011-04-30 15:06:17) ======

You are right coordinates are swaped in my savegame.

If you still want to look at the savegame say so otherwise close this bugreport.
====== geever (2011-05-07 16:44:50) ======

I&#039;ve added compat code to the loading.

-geever
====== sf-robot (2011-05-21 17:20:03) ======

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
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