project-navigation
Personal tools

Author Topic: Game crash-assertion failed-expression-ic->item.t  (Read 3269 times)

Offline nibelungen

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Game crash-assertion failed-expression-ic->item.t
« on: June 27, 2010, 08:52:50 pm »
 Hello. That problem.
Version ufoai-2.3 stable.
I kill all enemy in mission, but game crash after message-you win.

"LoadMap: "-village/vil_ +c01 +c04 +craft_drop_firebird +craft_ufo_harvester +c01 +s02 +h01 +s07 +s02 +r01 +s02 +d03 +s02 +d02 +s07 +d02 +s05 +d03 +d07 +d04 +d04 +r03 +s04 +d05" "0 0 0 16 8 0 -32 -16 0 -8 -32 0 -32 0 0 -16 0 0 -16 8 0 -8 0 0 16 0 0 -32 -32 0 24 0 0 -16 -24 0 -32 24 0 -8 -8 0 -24 24 0 0 -8 0 -16 24 0 -8 24 0 0 24 0 8 24 0 16 24 0 24 24 0 -8 -32 0 -16 -32 0"

[STATS] End of game - Team 1 is the winner
[STATS] Soldier nibelungen earned 1118 experience points in skill #9 (total experience: 22877). It is now 26 higher.
"(c) ufoconsole.log


In file \src\game\g_inventory.c
 in line 298 that text

"   G_EventInventoryAdd(ent, playerMask, nr);
   for (container = 0; container < gi.csi->numIDs; container++) {
      for (ic = CONTAINER(ent, container); ic; ic = ic->next) {
         /* send a single item */
         assert(ic->item.t);
         G_WriteItem(&ic->item, INVDEF(container), ic->x, ic->y);
"

How to do correct this error? ???
« Last Edit: June 27, 2010, 09:07:36 pm by nibelungen »

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Game crash-assertion failed-expression-ic->item.t
« Reply #1 on: July 02, 2010, 11:36:18 pm »
I assume you killed many aliens in many other missions without getting this error.
So did you observe anything *special* about the alliens you killed ?