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 #468 crash when a number key is pressed in start screen
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/468 Item 468] imported from sourceforge.net tracker on 2013-01-28 18:21:29

At the menu screens, if you press a number key "1" to "8" program crash. As it only occurrs with 1-8 keys, I think it's related to the hotkeys to select a soldier ingame.

(Windows version compiled with devcpp)


Rgrds
===== Comments Ported from Sourceforge =====

====== voovoos (2006-12-15 21:12:29) ======

Logged In: YES
user_id=194458
Originator: NO

Backtrace for this:

Program received signal SIGSEGV, Segmentation fault.
0x00436cb5 in CL_SelectCmd () at ../../src/client/cl_team.c:686
686 if (baseCurrent->teamNum[baseCurrent->aircraftCurrent] <
= 0) {
(gdb) bt
#0 0x00436cb5 in CL_SelectCmd () at ../../src/client/cl_team.c:686
#1 0x0043ef18 in Cmd_ExecuteString (text=0x22fa10 "soldier_select 0")
at ../../src/qcommon/cmd.c:876
#2 0x0043e096 in Cbuf_Execute () at ../../src/qcommon/cmd.c:266
#3 0x00447d27 in Qcommon_Frame (msec=27) at ../../src/qcommon/common.c:1591
#4 0x004698bf in WinMain (hInstance=0x400000, hPrevInstance=0x0,
lpCmdLine=0x241f08 "+set", nCmdShow=10)
at ../../src/ports/win32/sys_win.c:627
#5 0x00495e5a in main ()
(gdb)
====== voovoos (2006-12-15 23:27:16) ======

Logged In: YES
user_id=194458
Originator: NO

Workaround for this: in team.c, in CL_SelectCmd():

--- src/client/cl_team.c Sat Dec 16 00:25:39 2006
+++ cl_team.c.local Sat Dec 16 00:26:18 2006
@@ -679,6 +679,8 @@
return;
/* we are still in the menu */
} else
+ if (CL_OnBattlescape())
+ return;
Q_strncpyz(command, "equip", MAX_VAR);
}


However I am not sure if it is the proper way of handling things.
====== cassiterite (2006-12-16 00:43:35) ======

Logged In: YES
user_id=1171370
Originator: NO

Thanks for the report, and thanks Zenerka for tracking it down further.

I pushed through a fix in rev 5244.
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