#2162: Probably bug on using some functions
-----------------------------------------+----------------------------------
        Reporter:  dise-ut...@…          |         Type:  bug                   
                    
          Status:  new                   |     Priority:  normal                
                    
       Milestone:  unspecified           |    Component:  Engine: other         
                    
         Version:  2.3.5 (rc 3)          |     Keywords:  intObjectSelected 
intGotoNextStructureType
Operating System:  All/Non-Specific      |   Blocked By:                        
                    
        Blocking:                        |  
-----------------------------------------+----------------------------------
 i am trying to use some functions in keybind.c

 This is my code:

 void    kf_ChooseManufacture( void )
 {
         /*old if (intCheckReticuleButEnabled(IDRET_MANUFACTURE))
         {
                 setKeyButtonMapping(IDRET_MANUFACTURE);
         }*/

 
intObjectSelected((BASE_OBJECT*)intGotoNextStructureType(REF_FACTORY,false,false));
 }

 The problem is that i get segfault, but only sometimes with a rate of ~1:5

 I call for your help because maybe is a bug of these functions and not of
 my code.
 I have compiled myself and i tried to debug with gdb integrated in
 kdevelop4 but i didnt get breakpoints working(dont know how to do it).

 Anyway I attach a log file with the problem, I'm obviously glad to help if
 i can!

-- 
Ticket URL: <http://developer.wz2100.net/ticket/2162>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to