All pastes #455521 Raw Edit

Babble

public text v1 · immutable
·published 2007-04-24 07:16 UTC
rendered paste body
MN_Command_f: menu 'save'
ExecuteString: 'game_save slot1 *mn_slot1'
Save 'slot1'
...subsystem 'base' - saved 5726 bytes
...subsystem 'campaign' - saved 212 bytes
...subsystem 'hospital' - saved 2 bytes
...subsystem 'market' - saved 2176 bytes
...subsystem 'research' - saved 6500 bytes
CL_SendInventory: Send 13 items
MSG_WriteFormat: bbbb

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208199488 (LWP 15229)]
0x080bb622 in MSG_WriteString (sb=0xbfccd88c, s=0x1563b9bc <Address 0x1563b9bc out of bounds>) at src/qcommon/common.c:399
399                     SZ_Write(sb, s, strlen(s) + 1);
(gdb) up
#1  0x0809bfcd in CL_SendItem (buf=0xbfccd88c, item={a = 0, m = 255, t = 12}, container=3, x=3, y=2, save=qtrue) at src/client/cl_team.c:72
72                      MSG_WriteString(buf, csi.ods[item.m].id);
(gdb) list
67      {
68              assert (item.t != NONE);
69      /*      Com_Printf("Add item %s to container %i (t=%i:a=%i:m=%i) (x=%i:y=%i)\n", csi.ods[item.t].id, container, item.t, item.a, item.m, x, y);*/
70              if (save) {
71                      MSG_WriteString(buf, csi.ods[item.t].id);
72                      MSG_WriteString(buf, csi.ods[item.m].id);
73                      MSG_WriteFormat(buf, "bbbb", item.a, container, x, y);
74              } else
75                      MSG_WriteFormat(buf, "bbbbbb", item.t, item.a, item.m, container, x, y);
76      }
(gdb)