dxx-rebirth/common
Kp 879070f814 Fix uninitialized value usage during init_player_stats_new_ship
init_player_stats_new_ship used select_primary_weapon and
select_secondary_weapon to assign the player's weapons.  However, those
functions read the current weapon and jumped according to its value.  A
new ship has no defined value for current weapons, so the jump triggered
an uninitialized value warning from Valgrind.

Add new functions set_primary_weapon, set_secondary_weapon that work
like the previous select_* functions, but always take the path used
for weapons not equal, without checking.  This prevents the warnings
from Valgrind, as well as a theoretical risk of initializing the ship
improperly.
2016-12-25 00:33:25 +00:00
..
2d Pass grs_main_bitmap to gr_init_bitmap_alloc 2016-10-29 23:16:15 +00:00
3d Fix various check_header_includes=1 failures 2016-12-05 00:26:11 +00:00
arch Fix memory corruption starting multiplayer game 2016-11-19 18:09:26 +00:00
editor Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00
include Split valptridx declarations 2016-12-24 18:12:17 +00:00
main Fix uninitialized value usage during init_player_stats_new_ship 2016-12-25 00:33:25 +00:00
maths Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
mem Use array<> for memdebug data 2016-10-29 23:16:15 +00:00
misc Use range_for for hmp reset_tracks 2016-10-29 23:16:18 +00:00
texmap Fixed compile-time error of software rendering build. 2016-10-31 11:44:22 +01:00
ui Merge pull #266 into master 2016-11-19 18:09:26 +00:00