diff --git a/Makefile b/Makefile index e467150c..f686467f 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,8 @@ OPT_LEVEL ?= -1 DEBUG_INFO_LEVEL ?= 2 # Enable profiling PROFILE ?= 0 +# Enable address sanitizer +ASAN ?= 0 # Compile headless HEADLESS ?= 0 # Enable Game ICON @@ -949,6 +951,12 @@ ifeq ($(WINDOWS_BUILD),999) endif endif +ifeq ($(ASAN),1) + EXTRA_CFLAGS += -fsanitize=address -fsanitize=bounds-strict -fsanitize=undefined -ggdb + EXTRA_CPP_FLAGS += -fsanitize=address -fsanitize=bounds-strict -fsanitize=undefined -ggdb + LDFLAGS += -fsanitize=address -fsanitize=bounds-strict -fsanitize=undefined -static-libasan +endif + # Coop specific libraries # Zlib diff --git a/autogen/convert_functions.py b/autogen/convert_functions.py index 185f1e12..496310a6 100644 --- a/autogen/convert_functions.py +++ b/autogen/convert_functions.py @@ -806,7 +806,7 @@ def output_fuzz_function(fname, function): comment = ' -- ' fid = function['identifier'] - line = ' ' + fid + '(' + line = ' function() return ' + fid + '(' for param in function['params']: if first: @@ -822,18 +822,13 @@ def output_fuzz_function(fname, function): ptype = 'integer' line += 'rnd_' + ptype.strip().replace('`', '').replace(' ', '').split('<')[-1].split('>')[0].split('(')[0] + '()' - - #if ptype == '`integer`' or ptype == '`number`' or 'enum' in ptype: - # print('0', end='') - #else: - # print('nil', end='') comment += ptype - line += ')' - if len(line) >= 80: - line = line + '\n ' + comment + '\n' - else: - line = line.ljust(80) + comment + '\n' + line += ') end,\n' + #if len(line) >= 80: + # line = line + '\n ' + comment + '\n' + #else: + # line = line.ljust(80) + comment + '\n' global fuzz_functions fuzz_functions += line diff --git a/autogen/fuzz_template.lua b/autogen/fuzz_template.lua index 4659c655..236763e8 100644 --- a/autogen/fuzz_template.lua +++ b/autogen/fuzz_template.lua @@ -50,7 +50,7 @@ end -------- function rnd_string() - t = { 0, "test", "this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string" } + t = { 0, "test", "this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string this is a very long string" } return t[math.random(#t)] end @@ -65,7 +65,7 @@ function rnd_number() end function rnd_boolean() - t = { nil, false, true } + t = { false, true } return t[math.random(#t)] end @@ -100,12 +100,12 @@ function rnd_Object() end function rnd_MarioState() - t = { nil, gMarioStates[math.random(0, MAX_PLAYERS)] } + t = { nil, gMarioStates[0], gMarioStates[math.random(0, MAX_PLAYERS)] } return t[math.random(#t)] end function rnd_NetworkPlayer() - t = { nil, gNetworkPlayers[math.random(0, MAX_PLAYERS)] } + t = { nil, gNetworkPlayers[0], gNetworkPlayers[math.random(0, MAX_PLAYERS)] } return t[math.random(#t)] end @@ -137,7 +137,18 @@ end -------- function fuzz_functions() + local funcs = { -- $[FUNCS] + } + for i = #funcs, 2, -1 do + local j = math.random(i) + funcs[i], funcs[j] = funcs[j], funcs[i] + end + + for k,v in pairs(funcs) do + v() + end + end id_bhvFuncs = hook_behavior(nil, OBJ_LIST_DEFAULT, true, fuzz_functions, nil, 'id_bhvFuncs') @@ -147,12 +158,33 @@ id_bhvFuncs = hook_behavior(nil, OBJ_LIST_DEFAULT, true, fuzz_functions, nil, 'i function fuzz_structs() end -function update() +-------- +local sCountDown = 0 +local sLevel = 15 + +function on_sync_valid() fuzz_functions() + for i=0,10 do + spawn_non_sync_object(id_bhvFuncs, E_MODEL_SPINY_BALL, 0, 0, 0, nil) + end +end + +function update() + sCountDown = sCountDown - 1 + if sCountDown <= 0 then + print('warping to ', sLevel) + warp_to_level(sLevel, 1, 1) + sLevel = sLevel + 1 + if sLevel > LEVEL_COUNT then + sLevel = 0 + end + sCountDown = 10 + end end hook_chat_command('fuzz-funcs', 'funcs', fuzz_functions) hook_chat_command('fuzz-structs', 'structs', fuzz_structs) hook_event(HOOK_UPDATE, update) +hook_event(HOOK_ON_SYNC_VALID, on_sync_valid) -spawn_non_sync_object(id_bhvFuncs, E_MODEL_SPINY_BALL, 0, 0, 0, nil) +print('!') diff --git a/data/dynos_level.cpp b/data/dynos_level.cpp index 6dfd7167..983f80ff 100644 --- a/data/dynos_level.cpp +++ b/data/dynos_level.cpp @@ -238,7 +238,9 @@ const s32 *DynOS_Level_GetList() { } s32 DynOS_Level_GetCourse(s32 aLevel) { - return (s32) gLevelToCourseNumTable[aLevel - 1]; + u32 index = aLevel - 1; + if (index >= LEVEL_COUNT) { return COURSE_NONE; } + return (s32) gLevelToCourseNumTable[index]; } void DynOS_Level_Override(void* originalScript, void* newScript, s32 modIndex) { @@ -908,7 +910,7 @@ s16 *DynOS_Level_GetWarp(s32 aLevel, s32 aArea, u8 aWarpId) { } DynOS_Level_Init(); - if (aLevel < LEVEL_COUNT) { + if (aLevel >= 0 && aLevel < LEVEL_COUNT) { for (const auto &_Warp : sDynosLevelWarps[aLevel]) { if (_Warp.mArea == aArea) { if (_Warp.mId == aWarpId) { @@ -925,7 +927,7 @@ s16 *DynOS_Level_GetWarpEntry(s32 aLevel, s32 aArea) { if (aLevel == LEVEL_TTM && aArea > 2) return NULL; // override vanilla castle warps - if (DynOS_Level_GetCourse(aLevel) == COURSE_NONE) { + if (DynOS_Level_GetCourse(aLevel) == COURSE_NONE && aLevel >= 0 && aLevel < LEVEL_COUNT) { extern const LevelScript level_castle_grounds_entry[]; extern const LevelScript level_castle_inside_entry[]; extern const LevelScript level_castle_courtyard_entry[]; diff --git a/developer/debug.sh b/developer/debug.sh index 08ce6356..532f4140 100755 --- a/developer/debug.sh +++ b/developer/debug.sh @@ -2,9 +2,9 @@ set -e if [ $# -eq 0 ]; then - make DEBUG=1 DEVELOPMENT=1 STRICT=1 -j + make DEBUG=1 DEVELOPMENT=1 STRICT=1 ASAN=1 -j else - make DEBUG=1 DEVELOPMENT=1 -j + make DEBUG=1 DEVELOPMENT=1 ASAN=1 -j fi # find file diff --git a/grind.log b/grind.log deleted file mode 100644 index a673d89d..00000000 --- a/grind.log +++ /dev/null @@ -1,5582 +0,0 @@ -==401329== Memcheck, a memory error detector -==401329== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. -==401329== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info -==401329== Command: ./build/us_pc/sm64.us.f3dex2e -==401329== Parent PID: 10640 -==401329== -==401329== Warning: noted but unhandled ioctl 0x6444 with no size/direction hints. -==401329== This could cause spurious value errors to appear. -==401329== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. -==401329== Warning: unimplemented fcntl command: 1033 -==401329== Warning: unimplemented fcntl command: 1033 -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0xB450565: pa_shm_cleanup (in /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so) -==401329== by 0xB4507A1: pa_shm_create_rw (in /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so) -==401329== by 0xB4404B6: pa_mempool_new (in /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so) -==401329== by 0xB3C59B1: pa_context_new_with_proplist (in /usr/lib/x86_64-linux-gnu/libpulse.so.0.21.2) -==401329== by 0x6D0BC10: ConnectToPulseServer_Internal (SDL_pulseaudio.c:312) -==401329== by 0x6D0C0DB: ConnectToPulseServer (SDL_pulseaudio.c:348) -==401329== by 0x6D0C0DB: PULSEAUDIO_Init (SDL_pulseaudio.c:829) -==401329== by 0x6C07698: SDL_AudioInit_REAL (SDL_audio.c:981) -==401329== by 0x6C02DFE: SDL_InitSubSystem_REAL.part.0 (SDL.c:244) -==401329== by 0x67B624: audio_sdl_init (audio_sdl2.c:10) -==401329== by 0x650D94: main_func (pc_main.c:368) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Syscall param write(buf) points to uninitialised byte(s) -==401329== at 0x6DE032F: __libc_write (write.c:26) -==401329== by 0x6DE032F: write (write.c:24) -==401329== by 0x6D473DB: SDL_SYS_HapticSetGain (SDL_syshaptic.c:1113) -==401329== by 0x6C39303: SDL_HapticSetGain_REAL (SDL_haptic.c:660) -==401329== by 0x6C39454: SDL_HapticOpen_REAL (SDL_haptic.c:160) -==401329== by 0x6C39454: SDL_HapticOpen_REAL (SDL_haptic.c:111) -==401329== by 0x67BC98: controller_sdl_init_haptics (controller_sdl2.c:144) -==401329== by 0x67C03B: controller_sdl_read (controller_sdl2.c:238) -==401329== by 0x67C6FD: osContGetReadData (controller_entry_point.c:69) -==401329== by 0x54A4D4: read_controller_inputs (game_init.c:471) -==401329== by 0x54A9ED: game_loop_one_iteration (game_init.c:614) -==401329== by 0x650815: produce_one_frame (pc_main.c:225) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== Address 0x1ffeffe910 is on thread 1's stack -==401329== in frame #1, created by SDL_SYS_HapticSetGain (SDL_syshaptic.c:1106) -==401329== -==401329== Syscall param write(buf) points to uninitialised byte(s) -==401329== at 0x6DE032F: __libc_write (write.c:26) -==401329== by 0x6DE032F: write (write.c:24) -==401329== by 0x6D472B9: SDL_SYS_HapticStopEffect (SDL_syshaptic.c:1052) -==401329== by 0x6C39AB3: SDL_HapticStopEffect_REAL (SDL_haptic.c:580) -==401329== by 0x6C39AB3: SDL_HapticStopEffect_REAL (SDL_haptic.c:573) -==401329== by 0x6C39AB3: SDL_HapticRumbleStop_REAL (SDL_haptic.c:852) -==401329== by 0x67C467: controller_sdl_rumble_stop (controller_sdl2.c:331) -==401329== by 0x67C914: controller_rumble_stop (controller_entry_point.c:105) -==401329== by 0x67C65A: osMotorStop (controller_entry_point.c:48) -==401329== by 0x54D58D: cancel_rumble (rumble_init.c:279) -==401329== by 0x547868: init_level (level_update.c:1767) -==401329== by 0x54790F: lvl_init_or_update (level_update.c:1790) -==401329== by 0x5246A4: level_cmd_call (level_script.c:289) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== Address 0x1ffeffe910 is on thread 1's stack -==401329== in frame #1, created by SDL_SYS_HapticStopEffect (SDL_syshaptic.c:1045) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x5235DB: cur_obj_update (behavior_script.c:1351) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== Address 0xa92fc48 is 0 bytes after a block of size 24 alloc'd -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7838AD: smlua_hook_behavior (smlua_hooks.c:1138) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x77F265: smlua_load_script (smlua.c:116) -==401329== by 0x77F5C6: smlua_init (smlua.c:175) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x5ECE20: get_object_list_from_behavior (object_helpers.c:994) -==401329== by 0x79142A: obj_get_next (smlua_obj_utils.c:208) -==401329== by 0x7914DE: obj_get_next_with_same_behavior_id (smlua_obj_utils.c:220) -==401329== by 0x5A8F56: spawn_star_number (spawn_star.inc.c:31) -==401329== by 0x5A9081: bhv_collect_star_init (spawn_star.inc.c:74) -==401329== by 0x6F917B: smlua_func_bhv_collect_star_init (smlua_functions_autogen.c:2665) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== Address 0xaf01c40 is 0 bytes inside a block of size 24 free'd -==401329== at 0x6B20A3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x78489A: smlua_clear_hooks (smlua_hooks.c:1442) -==401329== by 0x77F683: smlua_shutdown (smlua.c:199) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== Block was alloc'd at -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7838AD: smlua_hook_behavior (smlua_hooks.c:1138) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x77F265: smlua_load_script (smlua.c:116) -==401329== by 0x77F5C6: smlua_init (smlua.c:175) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x5ECE30: get_object_list_from_behavior (object_helpers.c:995) -==401329== by 0x79142A: obj_get_next (smlua_obj_utils.c:208) -==401329== by 0x7914DE: obj_get_next_with_same_behavior_id (smlua_obj_utils.c:220) -==401329== by 0x5A8F56: spawn_star_number (spawn_star.inc.c:31) -==401329== by 0x5A9081: bhv_collect_star_init (spawn_star.inc.c:74) -==401329== by 0x6F917B: smlua_func_bhv_collect_star_init (smlua_functions_autogen.c:2665) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== Address 0xaf01c40 is 0 bytes inside a block of size 24 free'd -==401329== at 0x6B20A3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x78489A: smlua_clear_hooks (smlua_hooks.c:1442) -==401329== by 0x77F683: smlua_shutdown (smlua.c:199) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== Block was alloc'd at -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7838AD: smlua_hook_behavior (smlua_hooks.c:1138) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x77F265: smlua_load_script (smlua.c:116) -==401329== by 0x77F5C6: smlua_init (smlua.c:175) -==401329== -==401329== Syscall param write(buf) points to uninitialised byte(s) -==401329== at 0x6DE032F: __libc_write (write.c:26) -==401329== by 0x6DE032F: write (write.c:24) -==401329== by 0x6D4721F: SDL_SYS_HapticRunEffect (SDL_syshaptic.c:1032) -==401329== by 0x6C3996B: SDL_HapticRunEffect_REAL (SDL_haptic.c:561) -==401329== by 0x6C3996B: SDL_HapticRunEffect_REAL (SDL_haptic.c:554) -==401329== by 0x6C3996B: SDL_HapticRumblePlay_REAL (SDL_haptic.c:835) -==401329== by 0x67C441: controller_sdl_rumble_play (controller_sdl2.c:326) -==401329== by 0x67C8B1: controller_rumble_play (controller_entry_point.c:98) -==401329== by 0x67C634: osMotorStart (controller_entry_point.c:42) -==401329== by 0x54CED8: start_rumble (rumble_init.c:51) -==401329== by 0x54CF8C: update_rumble_pak (rumble_init.c:84) -==401329== by 0x54D4AB: thread6_rumble_loop (rumble_init.c:259) -==401329== by 0x650842: produce_one_frame (pc_main.c:232) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== Address 0x1ffeffe970 is on thread 1's stack -==401329== in frame #1, created by SDL_SYS_HapticRunEffect (SDL_syshaptic.c:1023) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x521991: bhv_cmd_or_int (behavior_script.c:550) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== Address 0x89ec558 is 0 bytes after a block of size 24 free'd -==401329== at 0x6B20A3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x78489A: smlua_clear_hooks (smlua_hooks.c:1442) -==401329== by 0x77F683: smlua_shutdown (smlua.c:199) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== Block was alloc'd at -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7838AD: smlua_hook_behavior (smlua_hooks.c:1138) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x77F265: smlua_load_script (smlua.c:116) -==401329== by 0x77F5C6: smlua_init (smlua.c:175) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x5219A2: bhv_cmd_or_int (behavior_script.c:551) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== Address 0x89ec558 is 0 bytes after a block of size 24 free'd -==401329== at 0x6B20A3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x78489A: smlua_clear_hooks (smlua_hooks.c:1442) -==401329== by 0x77F683: smlua_shutdown (smlua.c:199) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== Block was alloc'd at -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7838AD: smlua_hook_behavior (smlua_hooks.c:1138) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x77F265: smlua_load_script (smlua.c:116) -==401329== by 0x77F5C6: smlua_init (smlua.c:175) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5235E9: cur_obj_update (behavior_script.c:1352) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x5235FD: cur_obj_update (behavior_script.c:1354) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5C1A56: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A60: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:246) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FEBE: atan2s (math_util.c:873) -==401329== by 0x5C1A9A: platform_on_track_update_pos_or_spawn_ball (obj_behaviors_2.c:247) -==401329== by 0x5D045F: platform_on_track_act_move_along_track (platform_on_track.inc.c:217) -==401329== by 0x5D096E: bhv_platform_on_track_update (platform_on_track.inc.c:331) -==401329== by 0x70115B: smlua_func_bhv_platform_on_track_update (smlua_functions_autogen.c:5641) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A7D69: nearest_mario_state_to_object (obj_behaviors.c:615) -==401329== by 0x55F1A9: bhv_pushable_loop (metal_box.inc.c:34) -==401329== by 0x70199B: smlua_func_bhv_pushable_loop (smlua_functions_autogen.c:5835) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5194A8: find_wall_collisions_from_list (surface_collision.c:133) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5194BA: find_wall_collisions_from_list (surface_collision.c:133) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AF00: find_floor_from_list (surface_collision.c:735) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A756E: object_step (obj_behaviors.c:475) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A758A: object_step (obj_behaviors.c:479) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A72A5: obj_splash (obj_behaviors.c:423) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A730F: obj_splash (obj_behaviors.c:432) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5B6129: bhv_pyramid_top_fragment_loop (pyramid_top.inc.c:143) -==401329== by 0x701DBB: smlua_func_bhv_pyramid_top_fragment_loop (smlua_functions_autogen.c:5931) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5194A8: find_wall_collisions_from_list (surface_collision.c:133) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5EFBD6: cur_obj_resolve_wall_collisions (object_helpers.c:2038) -==401329== by 0x5EFE6C: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2096) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5194BA: find_wall_collisions_from_list (surface_collision.c:133) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5EFBD6: cur_obj_resolve_wall_collisions (object_helpers.c:2038) -==401329== by 0x5EFE6C: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2096) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51985A: find_wall_collisions_from_list (surface_collision.c:182) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5EFBD6: cur_obj_resolve_wall_collisions (object_helpers.c:2038) -==401329== by 0x5EFE6C: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2096) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519863: find_wall_collisions_from_list (surface_collision.c:182) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5EFBD6: cur_obj_resolve_wall_collisions (object_helpers.c:2038) -==401329== by 0x5EFE6C: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2096) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AF00: find_floor_from_list (surface_collision.c:735) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5EDF1C: cur_obj_update_floor_height_and_get_floor (object_helpers.c:1460) -==401329== by 0x5EFCCB: cur_obj_update_floor (object_helpers.c:2058) -==401329== by 0x5EFE92: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2100) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EFEB4: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2102) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5E1BF9: bhv_racing_penguin_update (racing_penguin.inc.c:272) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A7D69: nearest_mario_state_to_object (obj_behaviors.c:615) -==401329== by 0x5A7F11: nearest_player_to_object (obj_behaviors.c:648) -==401329== by 0x5E1283: racing_penguin_act_wait_for_mario (racing_penguin.inc.c:88) -==401329== by 0x5E1C33: bhv_racing_penguin_update (racing_penguin.inc.c:276) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AF00: find_floor_from_list (surface_collision.c:735) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5EE129: cur_obj_move_xz (object_helpers.c:1496) -==401329== by 0x5F000C: cur_obj_move_standard (object_helpers.c:2143) -==401329== by 0x5E1C61: bhv_racing_penguin_update (racing_penguin.inc.c:295) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE7F4: cur_obj_move_y (object_helpers.c:1625) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E1C61: bhv_racing_penguin_update (racing_penguin.inc.c:295) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE6E7: cur_obj_move_y_and_get_water_level (object_helpers.c:1605) -==401329== by 0x5EE857: cur_obj_move_y (object_helpers.c:1632) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E1C61: bhv_racing_penguin_update (racing_penguin.inc.c:295) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE872: cur_obj_move_y (object_helpers.c:1633) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E1C61: bhv_racing_penguin_update (racing_penguin.inc.c:295) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE50F: cur_obj_move_update_ground_air_flags (object_helpers.c:1569) -==401329== by 0x5EE887: cur_obj_move_y (object_helpers.c:1637) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E1C61: bhv_racing_penguin_update (racing_penguin.inc.c:295) -==401329== by 0x70207B: smlua_func_bhv_racing_penguin_update (smlua_functions_autogen.c:5995) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5ED0E4: cur_obj_find_nearest_object_with_behavior (object_helpers.c:1069) -==401329== by 0x5ECE8C: cur_obj_nearest_object_with_behavior (object_helpers.c:1008) -==401329== by 0x5B7F78: bhv_red_coin_init (red_coin.inc.c:27) -==401329== by 0x7021DB: smlua_func_bhv_red_coin_init (smlua_functions_autogen.c:6027) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5ED0F5: cur_obj_find_nearest_object_with_behavior (object_helpers.c:1070) -==401329== by 0x5ECE8C: cur_obj_nearest_object_with_behavior (object_helpers.c:1008) -==401329== by 0x5B7F78: bhv_red_coin_init (red_coin.inc.c:27) -==401329== by 0x7021DB: smlua_func_bhv_red_coin_init (smlua_functions_autogen.c:6027) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A783C: is_point_within_radius_of_mario (obj_behaviors.c:531) -==401329== by 0x5AF9A1: bhv_respawner_loop (corkbox.inc.c:44) -==401329== by 0x7023EB: smlua_func_bhv_respawner_loop (smlua_functions_autogen.c:6075) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A824E: is_point_close_to_object (obj_behaviors.c:720) -==401329== by 0x5B8B8B: rolling_log_roll_log (rolling_log.inc.c:72) -==401329== by 0x5B8D14: bhv_rolling_log_loop (rolling_log.inc.c:100) -==401329== by 0x70249B: smlua_func_bhv_rolling_log_loop (smlua_functions_autogen.c:6091) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A7D69: nearest_mario_state_to_object (obj_behaviors.c:615) -==401329== by 0x55C619: bhv_flamethrower_loop (flamethrower.inc.c:43) -==401329== by 0x55C8A8: bhv_rr_rotating_bridge_platform_loop (flamethrower.inc.c:84) -==401329== by 0x702A1B: smlua_func_bhv_rr_rotating_bridge_platform_loop (smlua_functions_autogen.c:6219) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x55C657: bhv_flamethrower_loop (flamethrower.inc.c:45) -==401329== by 0x55C8A8: bhv_rr_rotating_bridge_platform_loop (flamethrower.inc.c:84) -==401329== by 0x702A1B: smlua_func_bhv_rr_rotating_bridge_platform_loop (smlua_functions_autogen.c:6219) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55C6C0: bhv_flamethrower_loop (flamethrower.inc.c:54) -==401329== by 0x55C8A8: bhv_rr_rotating_bridge_platform_loop (flamethrower.inc.c:84) -==401329== by 0x702A1B: smlua_func_bhv_rr_rotating_bridge_platform_loop (smlua_functions_autogen.c:6219) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EFEB4: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2102) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x5785B9: bhv_scuttlebug_loop (scuttlebug.inc.c:44) -==401329== by 0x702B7B: smlua_func_bhv_scuttlebug_loop (smlua_functions_autogen.c:6251) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE6E7: cur_obj_move_y_and_get_water_level (object_helpers.c:1605) -==401329== by 0x5EE857: cur_obj_move_y (object_helpers.c:1632) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x578B83: bhv_scuttlebug_loop (scuttlebug.inc.c:138) -==401329== by 0x702B7B: smlua_func_bhv_scuttlebug_loop (smlua_functions_autogen.c:6251) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE872: cur_obj_move_y (object_helpers.c:1633) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x578B83: bhv_scuttlebug_loop (scuttlebug.inc.c:138) -==401329== by 0x702B7B: smlua_func_bhv_scuttlebug_loop (smlua_functions_autogen.c:6251) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE50F: cur_obj_move_update_ground_air_flags (object_helpers.c:1569) -==401329== by 0x5EE887: cur_obj_move_y (object_helpers.c:1637) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x578B83: bhv_scuttlebug_loop (scuttlebug.inc.c:138) -==401329== by 0x702B7B: smlua_func_bhv_scuttlebug_loop (smlua_functions_autogen.c:6251) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A7D69: nearest_mario_state_to_object (obj_behaviors.c:615) -==401329== by 0x578C89: bhv_scuttlebug_spawn_loop (scuttlebug.inc.c:152) -==401329== by 0x702C2B: smlua_func_bhv_scuttlebug_spawn_loop (smlua_functions_autogen.c:6267) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x578CDE: bhv_scuttlebug_spawn_loop (scuttlebug.inc.c:156) -==401329== by 0x702C2B: smlua_func_bhv_scuttlebug_spawn_loop (smlua_functions_autogen.c:6267) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE6E7: cur_obj_move_y_and_get_water_level (object_helpers.c:1605) -==401329== by 0x5EE857: cur_obj_move_y (object_helpers.c:1632) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E317E: bhv_skeeter_update (skeeter.inc.c:186) -==401329== by 0x7030FB: smlua_func_bhv_skeeter_update (smlua_functions_autogen.c:6379) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE872: cur_obj_move_y (object_helpers.c:1633) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E317E: bhv_skeeter_update (skeeter.inc.c:186) -==401329== by 0x7030FB: smlua_func_bhv_skeeter_update (smlua_functions_autogen.c:6379) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE50F: cur_obj_move_update_ground_air_flags (object_helpers.c:1569) -==401329== by 0x5EE887: cur_obj_move_y (object_helpers.c:1637) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x5E317E: bhv_skeeter_update (skeeter.inc.c:186) -==401329== by 0x7030FB: smlua_func_bhv_skeeter_update (smlua_functions_autogen.c:6379) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x57A992: bhv_sl_snowman_wind_loop (sl_snowman_wind.inc.c:17) -==401329== by 0x70325B: smlua_func_bhv_sl_snowman_wind_loop (smlua_functions_autogen.c:6411) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EFEB4: cur_obj_update_floor_and_resolve_wall_collisions (object_helpers.c:2102) -==401329== by 0x5EFF13: cur_obj_update_floor_and_walls (object_helpers.c:2113) -==401329== by 0x57AE3A: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:54) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE6E7: cur_obj_move_y_and_get_water_level (object_helpers.c:1605) -==401329== by 0x5EE857: cur_obj_move_y (object_helpers.c:1632) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x57B0D1: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:113) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE872: cur_obj_move_y (object_helpers.c:1633) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x57B0D1: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:113) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE50F: cur_obj_move_update_ground_air_flags (object_helpers.c:1569) -==401329== by 0x5EE887: cur_obj_move_y (object_helpers.c:1637) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x57B0D1: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:113) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1648: absf (object_helpers.c:2504) -==401329== by 0x5F2913: cur_obj_hide_if_mario_far_away_y (object_helpers.c:2893) -==401329== by 0x57B0DE: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:114) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F2927: cur_obj_hide_if_mario_far_away_y (object_helpers.c:2893) -==401329== by 0x57B0DE: bhv_sl_walking_penguin_loop (sl_walking_penguin.inc.c:114) -==401329== by 0x70330B: smlua_func_bhv_sl_walking_penguin_loop (smlua_functions_autogen.c:6427) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE6E7: cur_obj_move_y_and_get_water_level (object_helpers.c:1605) -==401329== by 0x5EE857: cur_obj_move_y (object_helpers.c:1632) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x56FD39: small_penguin_free_actions (tuxie.inc.c:293) -==401329== by 0x56FDC4: bhv_small_penguin_loop (tuxie.inc.c:303) -==401329== by 0x70388B: smlua_func_bhv_small_penguin_loop (smlua_functions_autogen.c:6555) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE872: cur_obj_move_y (object_helpers.c:1633) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x56FD39: small_penguin_free_actions (tuxie.inc.c:293) -==401329== by 0x56FDC4: bhv_small_penguin_loop (tuxie.inc.c:303) -==401329== by 0x70388B: smlua_func_bhv_small_penguin_loop (smlua_functions_autogen.c:6555) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x553DDA: bhv_small_water_wave_loop (water_objs.inc.c:63) -==401329== by 0x7039EB: smlua_func_bhv_small_water_wave_loop (smlua_functions_autogen.c:6587) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A783C: is_point_within_radius_of_mario (obj_behaviors.c:531) -==401329== by 0x5BCAAF: bhv_snow_mound_spawn_loop (snow_mound.inc.c:46) -==401329== by 0x703B4B: smlua_func_bhv_snow_mound_spawn_loop (smlua_functions_autogen.c:6619) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A7D69: nearest_mario_state_to_object (obj_behaviors.c:615) -==401329== by 0x5B6A92: bhv_snowmans_bottom_loop (snowman.inc.c:136) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51985A: find_wall_collisions_from_list (surface_collision.c:182) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519863: find_wall_collisions_from_list (surface_collision.c:182) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519B44: find_wall_collisions_from_list (surface_collision.c:222) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519B8C: find_wall_collisions_from_list (surface_collision.c:225) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519BD4: find_wall_collisions_from_list (surface_collision.c:228) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51992D: find_wall_collisions_from_list (surface_collision.c:197) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519975: find_wall_collisions_from_list (surface_collision.c:200) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5199BD: find_wall_collisions_from_list (surface_collision.c:203) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519C23: find_wall_collisions_from_list (surface_collision.c:232) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519C6E: find_wall_collisions_from_list (surface_collision.c:235) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x519CB9: find_wall_collisions_from_list (surface_collision.c:238) -==401329== by 0x51A127: find_wall_collisions (surface_collision.c:363) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AF00: find_floor_from_list (surface_collision.c:735) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A756E: object_step (obj_behaviors.c:475) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A72A5: obj_splash (obj_behaviors.c:423) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A730F: obj_splash (obj_behaviors.c:432) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B67F3: snowmans_bottom_act_2 (snowman.inc.c:89) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A824E: is_point_close_to_object (obj_behaviors.c:720) -==401329== by 0x5B6890: snowmans_bottom_act_2 (snowman.inc.c:94) -==401329== by 0x5B6C07: bhv_snowmans_bottom_loop (snowman.inc.c:161) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EAF2A: dist_between_objects (object_helpers.c:350) -==401329== by 0x5A828D: set_object_visibility (obj_behaviors.c:733) -==401329== by 0x5B6C61: bhv_snowmans_bottom_loop (snowman.inc.c:176) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A82B7: set_object_visibility (obj_behaviors.c:734) -==401329== by 0x5B6C61: bhv_snowmans_bottom_loop (snowman.inc.c:176) -==401329== by 0x703D5B: smlua_func_bhv_snowmans_bottom_loop (smlua_functions_autogen.c:6667) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51A0B7: find_wall_collisions (surface_collision.c:358) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51A10E: find_wall_collisions (surface_collision.c:362) -==401329== by 0x5A63E4: obj_find_wall (obj_behaviors.c:169) -==401329== by 0x5A744C: object_step (obj_behaviors.c:455) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B23E: find_floor (surface_collision.c:838) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B2A2: find_floor (surface_collision.c:842) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AA41: find_floor_from_list (surface_collision.c:645) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AB01: find_floor_from_list (surface_collision.c:657) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AB55: find_floor_from_list (surface_collision.c:660) -==401329== by 0x51B2C7: find_floor (surface_collision.c:843) -==401329== by 0x5A747D: object_step (obj_behaviors.c:459) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A756E: object_step (obj_behaviors.c:475) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A72A5: obj_splash (obj_behaviors.c:423) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A730F: obj_splash (obj_behaviors.c:432) -==401329== by 0x5A75B5: object_step (obj_behaviors.c:484) -==401329== by 0x5A75D9: object_step_without_floor_orient (obj_behaviors.c:495) -==401329== by 0x5B6F0B: bhv_snowmans_head_loop (snowman.inc.c:229) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== -==401329== More than 100 errors detected. Subsequent errors -==401329== will still be recorded, but in less detail than before. -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1A12: cur_obj_push_mario_away_from_cylinder (object_helpers.c:2583) -==401329== by 0x5B7050: bhv_snowmans_head_loop (snowman.inc.c:255) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1A32: cur_obj_push_mario_away_from_cylinder (object_helpers.c:2587) -==401329== by 0x5B7050: bhv_snowmans_head_loop (snowman.inc.c:255) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5F1A9D: cur_obj_push_mario_away_from_cylinder (object_helpers.c:2591) -==401329== by 0x5B7050: bhv_snowmans_head_loop (snowman.inc.c:255) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1AAE: cur_obj_push_mario_away_from_cylinder (object_helpers.c:2593) -==401329== by 0x5B7050: bhv_snowmans_head_loop (snowman.inc.c:255) -==401329== by 0x703EBB: smlua_func_bhv_snowmans_head_loop (smlua_functions_autogen.c:6699) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5EB2FE: obj_angle_to_object (object_helpers.c:453) -==401329== by 0x5DBD2C: bhv_snufit_loop (snufit.inc.c:152) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5EB2FE: obj_angle_to_object (object_helpers.c:453) -==401329== by 0x5DBD2C: bhv_snufit_loop (snufit.inc.c:152) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5EB2FE: obj_angle_to_object (object_helpers.c:453) -==401329== by 0x5DBD2C: bhv_snufit_loop (snufit.inc.c:152) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5DBD73: bhv_snufit_loop (snufit.inc.c:159) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5EB544: obj_turn_toward_object (object_helpers.c:494) -==401329== by 0x5C21BE: obj_turn_pitch_toward_mario (obj_behaviors_2.c:390) -==401329== by 0x5DBD94: bhv_snufit_loop (snufit.inc.c:161) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5EB59C: obj_turn_toward_object (object_helpers.c:499) -==401329== by 0x5C21BE: obj_turn_pitch_toward_mario (obj_behaviors_2.c:390) -==401329== by 0x5DBD94: bhv_snufit_loop (snufit.inc.c:161) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5EB59C: obj_turn_toward_object (object_helpers.c:499) -==401329== by 0x5C21BE: obj_turn_pitch_toward_mario (obj_behaviors_2.c:390) -==401329== by 0x5DBD94: bhv_snufit_loop (snufit.inc.c:161) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5EB59C: obj_turn_toward_object (object_helpers.c:499) -==401329== by 0x5C21BE: obj_turn_pitch_toward_mario (obj_behaviors_2.c:390) -==401329== by 0x5DBD94: bhv_snufit_loop (snufit.inc.c:161) -==401329== by 0x70401B: smlua_func_bhv_snufit_loop (smlua_functions_autogen.c:6731) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE91B: cur_obj_move_y (object_helpers.c:1646) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x55D445: bhv_spindrift_loop (spindrift.inc.c:49) -==401329== by 0x70470D: smlua_func_bhv_spindrift_loop (smlua_functions_autogen.c:6865) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5EE948: cur_obj_move_y (object_helpers.c:1649) -==401329== by 0x5F0028: cur_obj_move_standard (object_helpers.c:2144) -==401329== by 0x55D445: bhv_spindrift_loop (spindrift.inc.c:49) -==401329== by 0x70470D: smlua_func_bhv_spindrift_loop (smlua_functions_autogen.c:6865) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x57245B: bhv_sushi_shark_loop (sushi.inc.c:21) -==401329== by 0x70536D: smlua_func_bhv_sushi_shark_loop (smlua_functions_autogen.c:7153) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55DD20: bhv_tower_platform_group_loop (tower_platform.inc.c:144) -==401329== by 0x705D0D: smlua_func_bhv_tower_platform_group_loop (smlua_functions_autogen.c:7377) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x52A06A: load_object_collision_model (surface_load.c:798) -==401329== by 0x56D9CD: bhv_tox_box_loop (tox_box.inc.c:95) -==401329== by 0x705DBD: smlua_func_bhv_tox_box_loop (smlua_functions_autogen.c:7393) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x52A189: load_object_collision_model (surface_load.c:821) -==401329== by 0x56D9CD: bhv_tox_box_loop (tox_box.inc.c:95) -==401329== by 0x705DBD: smlua_func_bhv_tox_box_loop (smlua_functions_autogen.c:7393) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55DEBF: bhv_tree_snow_or_leaf_loop (tree_particles.inc.c:13) -==401329== by 0x70654D: smlua_func_bhv_tree_snow_or_leaf_loop (smlua_functions_autogen.c:7569) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5C1FF3: clamp_f32 (obj_behaviors_2.c:336) -==401329== by 0x5D3757: bhv_ttc_elevator_update (ttc_elevator.inc.c:56) -==401329== by 0x706A1D: smlua_func_bhv_ttc_elevator_update (smlua_functions_autogen.c:7681) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5C1FF3: clamp_f32 (obj_behaviors_2.c:336) -==401329== by 0x5D3425: bhv_ttc_pit_block_update (ttc_pit_block.inc.c:67) -==401329== by 0x706E3D: smlua_func_bhv_ttc_pit_block_update (smlua_functions_autogen.c:7777) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5C35AA: treat_far_home_as_mario (obj_behaviors_2.c:893) -==401329== by 0x5CBA8A: bhv_wiggler_update (wiggler.inc.c:495) -==401329== by 0x7098DD: smlua_func_bhv_wiggler_update (smlua_functions_autogen.c:8769) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5C35BB: treat_far_home_as_mario (obj_behaviors_2.c:895) -==401329== by 0x5CBA8A: bhv_wiggler_update (wiggler.inc.c:495) -==401329== by 0x7098DD: smlua_func_bhv_wiggler_update (smlua_functions_autogen.c:8769) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5C36F5: treat_far_home_as_mario (obj_behaviors_2.c:910) -==401329== by 0x5CBA8A: bhv_wiggler_update (wiggler.inc.c:495) -==401329== by 0x7098DD: smlua_func_bhv_wiggler_update (smlua_functions_autogen.c:8769) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5C3706: treat_far_home_as_mario (obj_behaviors_2.c:912) -==401329== by 0x5CBA8A: bhv_wiggler_update (wiggler.inc.c:495) -==401329== by 0x7098DD: smlua_func_bhv_wiggler_update (smlua_functions_autogen.c:8769) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1648: absf (object_helpers.c:2504) -==401329== by 0x557CFA: bhv_yellow_coin_init (coin.inc.c:33) -==401329== by 0x709C4D: smlua_func_bhv_yellow_coin_init (smlua_functions_autogen.c:8849) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x557D02: bhv_yellow_coin_init (coin.inc.c:33) -==401329== by 0x709C4D: smlua_func_bhv_yellow_coin_init (smlua_functions_autogen.c:8849) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A756E: object_step (obj_behaviors.c:475) -==401329== by 0x5C0806: yoshi_walk_loop (yoshi.inc.c:39) -==401329== by 0x5C0EF3: bhv_yoshi_loop (yoshi.inc.c:171) -==401329== by 0x709E5D: smlua_func_bhv_yoshi_loop (smlua_functions_autogen.c:8897) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A824E: is_point_close_to_object (obj_behaviors.c:720) -==401329== by 0x5C0887: yoshi_walk_loop (yoshi.inc.c:41) -==401329== by 0x5C0EF3: bhv_yoshi_loop (yoshi.inc.c:171) -==401329== by 0x709E5D: smlua_func_bhv_yoshi_loop (smlua_functions_autogen.c:8897) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5C0909: yoshi_walk_loop (yoshi.inc.c:52) -==401329== by 0x5C0EF3: bhv_yoshi_loop (yoshi.inc.c:171) -==401329== by 0x709E5D: smlua_func_bhv_yoshi_loop (smlua_functions_autogen.c:8897) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B23E: find_floor (surface_collision.c:838) -==401329== by 0x55F0EC: check_if_moving_over_floor (metal_box.inc.c:21) -==401329== by 0x709FFB: smlua_func_check_if_moving_over_floor (smlua_functions_autogen.c:8916) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B2A2: find_floor (surface_collision.c:842) -==401329== by 0x55F0EC: check_if_moving_over_floor (metal_box.inc.c:21) -==401329== by 0x709FFB: smlua_func_check_if_moving_over_floor (smlua_functions_autogen.c:8916) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5F1648: absf (object_helpers.c:2504) -==401329== by 0x55F110: check_if_moving_over_floor (metal_box.inc.c:22) -==401329== by 0x709FFB: smlua_func_check_if_moving_over_floor (smlua_functions_autogen.c:8916) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55F119: check_if_moving_over_floor (metal_box.inc.c:22) -==401329== by 0x709FFB: smlua_func_check_if_moving_over_floor (smlua_functions_autogen.c:8916) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x57B86A: uv_update_scroll (texscroll.inc.c:148) -==401329== by 0x70BAF7: smlua_func_uv_update_scroll (smlua_functions_autogen.c:9546) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x57B875: uv_update_scroll (texscroll.inc.c:148) -==401329== by 0x70BAF7: smlua_func_uv_update_scroll (smlua_functions_autogen.c:9546) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x832876: lua_pcallk (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x77EC31: smlua_pcall (smlua.c:42) -==401329== by 0x7800C1: smlua_call_hook (smlua_hooks.c:103) -==401329== by 0x783BD9: smlua_call_behavior_hook (smlua_hooks.c:1208) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x52A06A: load_object_collision_model (surface_load.c:798) -==401329== by 0x52390F: cur_obj_update (behavior_script.c:1439) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x52A189: load_object_collision_model (surface_load.c:821) -==401329== by 0x52390F: cur_obj_update (behavior_script.c:1439) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55367A: bhv_beta_chest_lid_loop (beta_chest.inc.c:47) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x61FED6: obj_is_in_view (rendering_graph_node.c:1170) -==401329== by 0x620AC2: geo_process_object (rendering_graph_node.c:1332) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== by 0x61D894: geo_process_perspective (rendering_graph_node.c:494) -==401329== by 0x6216AA: geo_process_node_and_siblings (rendering_graph_node.c:1521) -==401329== by 0x61D42E: geo_process_master_list (rendering_graph_node.c:433) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x61FF06: obj_is_in_view (rendering_graph_node.c:1178) -==401329== by 0x620AC2: geo_process_object (rendering_graph_node.c:1332) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== by 0x61D894: geo_process_perspective (rendering_graph_node.c:494) -==401329== by 0x6216AA: geo_process_node_and_siblings (rendering_graph_node.c:1521) -==401329== by 0x61D42E: geo_process_master_list (rendering_graph_node.c:433) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x61FF2B: obj_is_in_view (rendering_graph_node.c:1183) -==401329== by 0x620AC2: geo_process_object (rendering_graph_node.c:1332) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== by 0x61D894: geo_process_perspective (rendering_graph_node.c:494) -==401329== by 0x6216AA: geo_process_node_and_siblings (rendering_graph_node.c:1521) -==401329== by 0x61D42E: geo_process_master_list (rendering_graph_node.c:433) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x61FF5F: obj_is_in_view (rendering_graph_node.c:1186) -==401329== by 0x620AC2: geo_process_object (rendering_graph_node.c:1332) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== by 0x61D894: geo_process_perspective (rendering_graph_node.c:494) -==401329== by 0x6216AA: geo_process_node_and_siblings (rendering_graph_node.c:1521) -==401329== by 0x61D42E: geo_process_master_list (rendering_graph_node.c:433) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD4B: atan2s (math_util.c:846) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD56: atan2s (math_util.c:847) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FD6B: atan2s (math_util.c:848) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCA8: atan2_lookup (math_util.c:828) -==401329== by 0x51FD6B: atan2s (math_util.c:848) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FD6B: atan2s (math_util.c:848) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FD6B: atan2s (math_util.c:848) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51FD09: atan2_lookup (math_util.c:833) -==401329== by 0x51FD6B: atan2s (math_util.c:848) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x5A91FE: bhv_star_spawn_init (spawn_star.inc.c:89) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FEA0: atan2s (math_util.c:871) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCA8: atan2_lookup (math_util.c:828) -==401329== by 0x51FEA0: atan2s (math_util.c:871) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FEA0: atan2s (math_util.c:871) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FEA0: atan2s (math_util.c:871) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51FD09: atan2_lookup (math_util.c:833) -==401329== by 0x51FEA0: atan2s (math_util.c:871) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x57BCD6: detect_object_hitbox_overlap (object_collision.c:75) -==401329== by 0x57C149: check_collision_in_list (object_collision.c:164) -==401329== by 0x57C235: check_player_object_collision (object_collision.c:180) -==401329== by 0x57C6ED: detect_object_collisions (object_collision.c:248) -==401329== by 0x5F7B84: update_objects (object_list_processor.c:765) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x57BD0D: detect_object_hitbox_overlap (object_collision.c:82) -==401329== by 0x57C149: check_collision_in_list (object_collision.c:164) -==401329== by 0x57C235: check_player_object_collision (object_collision.c:180) -==401329== by 0x57C6ED: detect_object_collisions (object_collision.c:248) -==401329== by 0x5F7B84: update_objects (object_list_processor.c:765) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B23E: find_floor (surface_collision.c:838) -==401329== by 0x58458E: create_shadow_below_xyz (shadow.c:926) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B2A2: find_floor (surface_collision.c:842) -==401329== by 0x58458E: create_shadow_below_xyz (shadow.c:926) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B23E: find_floor (surface_collision.c:838) -==401329== by 0x51A761: find_floor_height_and_data (surface_collision.c:577) -==401329== by 0x582958: init_shadow (shadow.c:253) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51B2A2: find_floor (surface_collision.c:842) -==401329== by 0x51A761: find_floor_height_and_data (surface_collision.c:577) -==401329== by 0x582958: init_shadow (shadow.c:253) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x79B2F7B: sqrtf (w_sqrtf_compat.c:31) -==401329== by 0x6360FE: process_sound_request (external.c:938) -==401329== by 0x636501: process_all_sound_requests (external.c:969) -==401329== by 0x6382E7: update_game_sound (external.c:1395) -==401329== by 0x635B33: create_next_audio_buffer (external.c:839) -==401329== by 0x6508C1: produce_one_frame (pc_main.c:244) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51B34E: find_floor (surface_collision.c:866) -==401329== by 0x58458E: create_shadow_below_xyz (shadow.c:926) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== by 0x6216EE: geo_process_node_and_siblings (rendering_graph_node.c:1533) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51B34E: find_floor (surface_collision.c:866) -==401329== by 0x51A761: find_floor_height_and_data (surface_collision.c:577) -==401329== by 0x582958: init_shadow (shadow.c:253) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x582A1C: init_shadow (shadow.c:270) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== by 0x61DD7E: geo_process_camera (rendering_graph_node.c:582) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5827D8: dim_shadow_with_distance (shadow.c:211) -==401329== by 0x582AB0: init_shadow (shadow.c:284) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x58270B: scale_shadow_with_distance (shadow.c:181) -==401329== by 0x582AD9: init_shadow (shadow.c:287) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5E5243: round_float (geo_misc.c:67) -==401329== by 0x582CE4: make_shadow_vertex_at_xyz (shadow.c:336) -==401329== by 0x5832FD: make_shadow_vertex (shadow.c:511) -==401329== by 0x583B9C: create_shadow_circle_4_verts (shadow.c:732) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5E5243: round_float (geo_misc.c:67) -==401329== by 0x582CF4: make_shadow_vertex_at_xyz (shadow.c:337) -==401329== by 0x5832FD: make_shadow_vertex (shadow.c:511) -==401329== by 0x583B9C: create_shadow_circle_4_verts (shadow.c:732) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5E5243: round_float (geo_misc.c:67) -==401329== by 0x582D04: make_shadow_vertex_at_xyz (shadow.c:338) -==401329== by 0x5832FD: make_shadow_vertex (shadow.c:511) -==401329== by 0x583B9C: create_shadow_circle_4_verts (shadow.c:732) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5827EC: dim_shadow_with_distance (shadow.c:213) -==401329== by 0x582AB0: init_shadow (shadow.c:284) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x582725: scale_shadow_with_distance (shadow.c:183) -==401329== by 0x582AD9: init_shadow (shadow.c:287) -==401329== by 0x583B29: create_shadow_circle_4_verts (shadow.c:720) -==401329== by 0x5846AE: create_shadow_below_xyz (shadow.c:949) -==401329== by 0x61FB81: geo_process_shadow (rendering_graph_node.c:1071) -==401329== by 0x621784: geo_process_node_and_siblings (rendering_graph_node.c:1561) -==401329== by 0x620BD9: geo_process_object (rendering_graph_node.c:1345) -==401329== by 0x621732: geo_process_node_and_siblings (rendering_graph_node.c:1546) -==401329== by 0x621542: geo_try_process_children (rendering_graph_node.c:1478) -==401329== by 0x6217CA: geo_process_node_and_siblings (rendering_graph_node.c:1576) -==401329== by 0x620CFA: geo_process_object_parent (rendering_graph_node.c:1377) -==401329== by 0x621792: geo_process_node_and_siblings (rendering_graph_node.c:1564) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5A95F7: bhv_star_spawn_loop (spawn_star.inc.c:141) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x6737B9: gfx_sp_vertex (gfx_pc.c:929) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673536: gfx_sp_vertex (gfx_pc.c:930) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673540: gfx_sp_vertex (gfx_pc.c:931) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x67354B: gfx_sp_vertex (gfx_pc.c:932) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673556: gfx_sp_vertex (gfx_pc.c:933) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673561: gfx_sp_vertex (gfx_pc.c:934) -==401329== by 0x676459: gfx_run_dl (gfx_pc.c:1698) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673CEE: gfx_sp_tri1 (gfx_pc.c:985) -==401329== by 0x6763F8: gfx_run_dl (gfx_pc.c:1739) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x674661: gfx_sp_tri1 (gfx_pc.c:996) -==401329== by 0x6763F8: gfx_run_dl (gfx_pc.c:1739) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x673CEE: gfx_sp_tri1 (gfx_pc.c:985) -==401329== by 0x676422: gfx_run_dl (gfx_pc.c:1740) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x674661: gfx_sp_tri1 (gfx_pc.c:996) -==401329== by 0x676422: gfx_run_dl (gfx_pc.c:1740) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x6762AC: gfx_run_dl (gfx_pc.c:1708) -==401329== by 0x676659: gfx_run (gfx_pc.c:1917) -==401329== by 0x650292: send_display_list (pc_main.c:109) -==401329== by 0x650492: produce_interpolation_frames_and_delay (pc_main.c:183) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD39: atan2s (math_util.c:845) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD4B: atan2s (math_util.c:846) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FDB9: atan2s (math_util.c:854) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FDCE: atan2s (math_util.c:855) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCA8: atan2_lookup (math_util.c:828) -==401329== by 0x51FDCE: atan2s (math_util.c:855) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FDCE: atan2s (math_util.c:855) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FDCE: atan2s (math_util.c:855) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51FD09: atan2_lookup (math_util.c:833) -==401329== by 0x51FDCE: atan2s (math_util.c:855) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x52380D: cur_obj_update (behavior_script.c:1411) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== by 0x52711A: level_script_execute (level_script.c:1147) -==401329== by 0x54A9FC: game_loop_one_iteration (game_init.c:615) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE1F: atan2s (math_util.c:862) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FE8B: atan2s (math_util.c:870) -==401329== by 0x5FAC5B: mario_obj_angle_to_object (interaction.c:170) -==401329== by 0x6074B1: act_reading_npc_dialog (mario_actions_cutscene.c:465) -==401329== by 0x60E4D0: mario_execute_cutscene_action (mario_actions_cutscene.c:3018) -==401329== by 0x61B506: execute_mario_action (mario.c:2164) -==401329== by 0x5F6CC3: bhv_mario_update (object_list_processor.c:296) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FD4B: atan2s (math_util.c:846) -==401329== by 0x5EB2FE: obj_angle_to_object (object_helpers.c:453) -==401329== by 0x523522: cur_obj_update (behavior_script.c:1334) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FDB9: atan2s (math_util.c:854) -==401329== by 0x5EB2FE: obj_angle_to_object (object_helpers.c:453) -==401329== by 0x523522: cur_obj_update (behavior_script.c:1334) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FC9E: atan2_lookup (math_util.c:828) -==401329== by 0x51FD88: atan2s (math_util.c:850) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCA8: atan2_lookup (math_util.c:828) -==401329== by 0x51FD88: atan2s (math_util.c:850) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCEA: atan2_lookup (math_util.c:832) -==401329== by 0x51FD88: atan2s (math_util.c:850) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FCF0: atan2_lookup (math_util.c:832) -==401329== by 0x51FD88: atan2s (math_util.c:850) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Use of uninitialised value of size 8 -==401329== at 0x51FD09: atan2_lookup (math_util.c:833) -==401329== by 0x51FD88: atan2s (math_util.c:850) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x55DEBF: bhv_tree_snow_or_leaf_loop (tree_particles.inc.c:13) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== by 0x52470A: level_cmd_call_loop (level_script.c:296) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51FDB9: atan2s (math_util.c:854) -==401329== by 0x5A9146: bhv_star_spawn_init (spawn_star.inc.c:88) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== by 0x54748D: update_level (level_update.c:1649) -==401329== by 0x547919: lvl_init_or_update (level_update.c:1794) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x51AF00: find_floor_from_list (surface_collision.c:735) -==401329== by 0x51B263: find_floor (surface_collision.c:839) -==401329== by 0x5EDE92: cur_obj_update_floor_height (object_helpers.c:1455) -==401329== by 0x55DDDD: bhv_tree_snow_or_leaf_loop (tree_particles.inc.c:6) -==401329== by 0x52146D: bhv_cmd_call_native (behavior_script.c:415) -==401329== by 0x52360A: cur_obj_update (behavior_script.c:1355) -==401329== by 0x5F6F9F: update_objects_starting_at (object_list_processor.c:360) -==401329== by 0x5F715A: update_objects_in_list (object_list_processor.c:435) -==401329== by 0x5F78E8: update_non_terrain_objects (object_list_processor.c:686) -==401329== by 0x5F7B9F: update_objects (object_list_processor.c:769) -==401329== by 0x53A63C: area_update_objects (area.c:348) -==401329== by 0x5463F1: play_mode_normal (level_update.c:1230) -==401329== -==401329== Conditional jump or move depends on uninitialised value(s) -==401329== at 0x5845B1: create_shadow_below_xyz (shadow.c:930) -==401329== by 0x61C81E: patch_mtx_interpolated (rendering_graph_node.c:278) -==401329== by 0x6502ED: patch_interpolations (pc_main.c:154) -==401329== by 0x650483: produce_interpolation_frames_and_delay (pc_main.c:182) -==401329== by 0x65090F: produce_one_frame (pc_main.c:252) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== Invalid read of size 8 -==401329== at 0x62E248: seq_channel_layer_free (seqplayer.c:180) -==401329== by 0x62EB17: sequence_channel_enable (seqplayer.c:391) -==401329== by 0x632641: sequence_player_process_sequence (seqplayer.c:2867) -==401329== by 0x63275A: process_sequences (seqplayer.c:2907) -==401329== by 0x63E4F8: synthesis_execute (synthesis.c:407) -==401329== by 0x635B57: create_next_audio_buffer (external.c:843) -==401329== by 0x6508C1: produce_one_frame (pc_main.c:244) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x650EDC: main_func (pc_main.c:415) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== Address 0x100a0 is not stack'd, malloc'd or (recently) free'd -==401329== -==401329== Syscall param ioctl(generic) points to unaddressable byte(s) -==401329== at 0x7C1F3AB: ioctl (syscall-template.S:78) -==401329== by 0x6D47331: SDL_SYS_HapticDestroyEffect (SDL_syshaptic.c:1067) -==401329== by 0x6C38AEA: SDL_HapticDestroyEffect_REAL (SDL_haptic.c:602) -==401329== by 0x6C38AEA: SDL_HapticDestroyEffect_REAL (SDL_haptic.c:591) -==401329== by 0x6C38AEA: SDL_HapticClose_REAL (SDL_haptic.c:357) -==401329== by 0x6C38AEA: SDL_HapticClose_REAL (SDL_haptic.c:338) -==401329== by 0x67C559: controller_sdl_shutdown (controller_sdl2.c:362) -==401329== by 0x67C7D2: controller_shutdown (controller_entry_point.c:84) -==401329== by 0x65098E: game_deinit (pc_main.c:266) -==401329== by 0x650A17: game_exit (pc_main.c:278) -==401329== by 0x677AF1: gfx_sdl_handle_events (gfx_sdl2.c:213) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x65175D: crash_handler_produce_one_frame (crash_handler.c:204) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x654331: crash_handler (crash_handler.c:660) -==401329== Address 0x0 is not stack'd, malloc'd or (recently) free'd -==401329== -==401329== -==401329== HEAP SUMMARY: -==401329== in use at exit: 41,771,827 bytes in 28,560 blocks -==401329== total heap usage: 4,679,230 allocs, 4,650,670 frees, 4,581,160,484 bytes allocated -==401329== -==401329== 3 bytes in 1 blocks are possibly lost in loss record 6 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 4 bytes in 2 blocks are possibly lost in loss record 10 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 4 bytes in 2 blocks are possibly lost in loss record 11 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 10 bytes in 1 blocks are possibly lost in loss record 168 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022B794: ??? -==401329== by 0x1021EA38: ??? -==401329== by 0x10221DEF: ??? -==401329== by 0x1022252C: ??? -==401329== by 0x102209EB: ??? -==401329== by 0x10230F38: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 12 bytes in 2 blocks are possibly lost in loss record 190 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 12 bytes in 6 blocks are possibly lost in loss record 191 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 14 bytes in 2 blocks are possibly lost in loss record 205 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 14 bytes in 2 blocks are possibly lost in loss record 206 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 15 bytes in 3 blocks are possibly lost in loss record 211 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941F21: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 16 bytes in 2 blocks are possibly lost in loss record 256 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941F21: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB942010: snd_config_searchva_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 16 bytes in 8 blocks are possibly lost in loss record 257 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 17 bytes in 1 blocks are possibly lost in loss record 283 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB9463DE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94B27E: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8D2: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 17 bytes in 2 blocks are possibly lost in loss record 284 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 17 bytes in 1 blocks are definitely lost in loss record 287 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7E50756: _XlcDefaultMapModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) -==401329== by 0x7E50B2A: XSetLocaleModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) -==401329== by 0x6D14E24: X11_InitKeyboard (SDL_x11keyboard.c:319) -==401329== by 0x6D1D326: X11_VideoInit (SDL_x11video.c:467) -==401329== by 0x6CE1F21: SDL_VideoInit_REAL (SDL_video.c:480) -==401329== by 0x6C02DDE: SDL_InitSubSystem_REAL.part.0 (SDL.c:228) -==401329== by 0x677737: gfx_sdl_init (gfx_sdl2.c:110) -==401329== by 0x676510: gfx_init (gfx_pc.c:1877) -==401329== by 0x650D49: main_func (pc_main.c:364) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== 18 bytes in 3 blocks are possibly lost in loss record 288 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 20 bytes in 1 blocks are possibly lost in loss record 292 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB9462AF: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95CDE0: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95D466: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB96056B: snd_pcm_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x73638F1: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 20 bytes in 1 blocks are possibly lost in loss record 293 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB9462AF: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94B27E: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8D2: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB949D35: snd_hctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB954EC5: snd_mixer_attach (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7363D51: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 28 bytes in 4 blocks are possibly lost in loss record 323 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 28 bytes in 14 blocks are possibly lost in loss record 324 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 29 bytes in 5 blocks are possibly lost in loss record 328 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 30 bytes in 3 blocks are possibly lost in loss record 330 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 31 bytes in 3 blocks are possibly lost in loss record 332 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 34 bytes in 3 blocks are possibly lost in loss record 350 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 40 bytes in 20 blocks are possibly lost in loss record 392 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 55 bytes in 1 blocks are possibly lost in loss record 420 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== -==401329== 56 bytes in 1 blocks are possibly lost in loss record 433 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10220F39: ??? -==401329== by 0x1021EF5A: ??? -==401329== by 0x1022214A: ??? -==401329== by 0x102209EB: ??? -==401329== by 0x10230F38: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 56 bytes in 1 blocks are possibly lost in loss record 434 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB94627D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94B27E: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8D2: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 56 bytes in 1 blocks are possibly lost in loss record 435 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB94627D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95CDE0: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95D466: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB96056B: snd_pcm_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x73638F1: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 56 bytes in 1 blocks are possibly lost in loss record 436 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB94627D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94B27E: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8D2: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB949D35: snd_hctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB954EC5: snd_mixer_attach (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7363D51: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 56 bytes in 28 blocks are possibly lost in loss record 437 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB93DAC9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 58 bytes in 1 blocks are definitely lost in loss record 511 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0x68A8C3: mod_cache_add (mod_cache.c:210) -==401329== by 0x688C9D: mod_load (mod.c:531) -==401329== by 0x686289: mods_load (mods.c:184) -==401329== by 0x6863DD: mods_refresh_local (mods.c:210) -==401329== by 0x6865A0: mods_init (mods.c:246) -==401329== by 0x650AC4: main_func (pc_main.c:293) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== 63 bytes in 2 blocks are possibly lost in loss record 514 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 65 bytes in 1 blocks are possibly lost in loss record 595 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB9462A1: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95CDE0: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB95D466: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB96056B: snd_pcm_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x73638F1: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 65 bytes in 1 blocks are possibly lost in loss record 596 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x7BAA38E: strdup (strdup.c:42) -==401329== by 0xB9462A1: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB946497: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94B27E: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8D2: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB949D35: snd_hctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB954EC5: snd_mixer_attach (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7363D51: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x7380199: BASS_Init (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 72 bytes in 1 blocks are possibly lost in loss record 607 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DEFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 72 bytes in 1 blocks are possibly lost in loss record 608 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941F21: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 96 bytes in 1 blocks are possibly lost in loss record 709 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 99 bytes in 18 blocks are possibly lost in loss record 728 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 109 bytes in 20 blocks are possibly lost in loss record 729 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 112 bytes in 13 blocks are possibly lost in loss record 732 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 116 bytes in 8 blocks are possibly lost in loss record 736 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 128 bytes in 1 blocks are definitely lost in loss record 739 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10220F39: ??? -==401329== by 0x1022081E: ??? -==401329== by 0x10230F38: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 139 bytes in 20 blocks are possibly lost in loss record 742 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 747 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DC86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 748 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 749 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DC86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 750 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 751 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 752 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BCC8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 753 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DEFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 754 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941F21: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB942010: snd_config_searchva_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 755 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 144 bytes in 2 blocks are possibly lost in loss record 756 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940332: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB3A9327: ??? -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 149 bytes in 6 blocks are possibly lost in loss record 757 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 155 bytes in 28 blocks are possibly lost in loss record 765 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 186 bytes in 25 blocks are possibly lost in loss record 774 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 196 bytes in 14 blocks are possibly lost in loss record 782 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 216 bytes in 3 blocks are possibly lost in loss record 785 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 216 bytes in 3 blocks are possibly lost in loss record 786 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DC86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 216 bytes in 3 blocks are possibly lost in loss record 787 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 216 bytes in 3 blocks are possibly lost in loss record 788 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DD0C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 236 bytes in 18 blocks are possibly lost in loss record 793 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 241 bytes in 6 blocks are possibly lost in loss record 798 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 244 bytes in 28 blocks are possibly lost in loss record 799 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 249 bytes in 47 blocks are possibly lost in loss record 804 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 279 bytes in 1 blocks are possibly lost in loss record 824 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x76B6D3: smlua_func_spawn_non_sync_object (smlua_functions_autogen.c:29140) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 279 bytes in 1 blocks are possibly lost in loss record 825 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786A5F: smlua_cobject_init_globals (smlua_cobject.c:587) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 279 bytes in 1 blocks are possibly lost in loss record 826 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B12: smlua_cobject_init_globals (smlua_cobject.c:598) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 279 bytes in 1 blocks are possibly lost in loss record 827 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 829 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786A5F: smlua_cobject_init_globals (smlua_cobject.c:587) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 830 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B12: smlua_cobject_init_globals (smlua_cobject.c:598) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 831 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B58: smlua_cobject_init_globals (smlua_cobject.c:605) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 832 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B83: smlua_cobject_init_globals (smlua_cobject.c:610) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 833 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 834 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BD9: smlua_cobject_init_globals (smlua_cobject.c:620) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 835 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C04: smlua_cobject_init_globals (smlua_cobject.c:625) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 836 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C2F: smlua_cobject_init_globals (smlua_cobject.c:630) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 837 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C5A: smlua_cobject_init_globals (smlua_cobject.c:635) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 838 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C85: smlua_cobject_init_globals (smlua_cobject.c:640) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 279 bytes in 1 blocks are definitely lost in loss record 839 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DC26: stbds_hmdel_key (stb_ds.h:892) -==401329== by 0x77E455: smlua_cpointer_allowlist_shutdown (smlua_cobject_allowlist.c:76) -==401329== by 0x77F67E: smlua_shutdown (smlua.c:198) -==401329== by 0x6509BB: game_deinit (pc_main.c:271) -==401329== by 0x650A17: game_exit (pc_main.c:278) -==401329== by 0x677AF1: gfx_sdl_handle_events (gfx_sdl2.c:213) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x65175D: crash_handler_produce_one_frame (crash_handler.c:204) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x654331: crash_handler (crash_handler.c:660) -==401329== -==401329== 294 bytes in 20 blocks are possibly lost in loss record 841 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 358 bytes in 61 blocks are possibly lost in loss record 848 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 852 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786A5F: smlua_cobject_init_globals (smlua_cobject.c:587) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 853 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B58: smlua_cobject_init_globals (smlua_cobject.c:605) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 854 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B83: smlua_cobject_init_globals (smlua_cobject.c:610) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 855 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 856 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BD9: smlua_cobject_init_globals (smlua_cobject.c:620) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 857 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C04: smlua_cobject_init_globals (smlua_cobject.c:625) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 858 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C2F: smlua_cobject_init_globals (smlua_cobject.c:630) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 859 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C5A: smlua_cobject_init_globals (smlua_cobject.c:635) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 375 (96 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 860 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C85: smlua_cobject_init_globals (smlua_cobject.c:640) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== -==401329== 382 bytes in 20 blocks are possibly lost in loss record 861 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93B456: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA3A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 423 bytes in 64 blocks are possibly lost in loss record 867 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 432 bytes in 6 blocks are possibly lost in loss record 869 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BCC8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 439 (160 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 870 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B12: smlua_cobject_init_globals (smlua_cobject.c:598) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 457 bytes in 72 blocks are possibly lost in loss record 873 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 487 bytes in 54 blocks are possibly lost in loss record 875 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 558 bytes in 2 blocks are possibly lost in loss record 897 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B58: smlua_cobject_init_globals (smlua_cobject.c:605) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 558 bytes in 2 blocks are possibly lost in loss record 898 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B83: smlua_cobject_init_globals (smlua_cobject.c:610) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 558 bytes in 2 blocks are definitely lost in loss record 899 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x6F1EED: smlua_func_area_get_warp_node (smlua_functions_autogen.c:61) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 559 bytes in 43 blocks are possibly lost in loss record 900 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 576 bytes in 8 blocks are possibly lost in loss record 901 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 595 (128 direct, 467 indirect) bytes in 1 blocks are definitely lost in loss record 902 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10220F39: ??? -==401329== by 0x1021EB7A: ??? -==401329== by 0x102203B2: ??? -==401329== by 0x10230F02: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 607 bytes in 93 blocks are possibly lost in loss record 904 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 663 bytes in 1 blocks are possibly lost in loss record 909 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 663 bytes in 1 blocks are definitely lost in loss record 910 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786928: smlua_cobject_init_globals (smlua_cobject.c:565) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 663 bytes in 1 blocks are definitely lost in loss record 911 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 720 bytes in 10 blocks are possibly lost in loss record 914 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DEFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 720 bytes in 10 blocks are possibly lost in loss record 915 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 734 bytes in 122 blocks are possibly lost in loss record 917 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 750 (192 direct, 558 indirect) bytes in 2 blocks are definitely lost in loss record 918 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x6F1EED: smlua_func_area_get_warp_node (smlua_functions_autogen.c:61) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 823 (544 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 924 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786928: smlua_cobject_init_globals (smlua_cobject.c:565) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 823 (544 direct, 279 indirect) bytes in 1 blocks are definitely lost in loss record 925 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68CB7A: network_init (network.c:141) -==401329== by 0x6DC988: djui_panel_do_host (djui_panel_host_message.c:29) -==401329== by 0x6DCA2F: djui_panel_host_message_do_host (djui_panel_host_message.c:45) -==401329== by 0x6EEAE6: djui_interactable_on_click (djui_interactable.c:46) -==401329== by 0x6EED5D: djui_interactable_on_cursor_down_end (djui_interactable.c:99) -==401329== -==401329== 864 bytes in 12 blocks are possibly lost in loss record 926 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 880 bytes in 52 blocks are possibly lost in loss record 927 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BB5B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 892 bytes in 127 blocks are possibly lost in loss record 928 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93B0D4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BA86: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DE23: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 896 bytes in 1 blocks are possibly lost in loss record 929 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10220F39: ??? -==401329== by 0x1021EC9D: ??? -==401329== by 0x102219AE: ??? -==401329== by 0x1022252C: ??? -==401329== by 0x102209EB: ??? -==401329== by 0x10230F38: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 896 bytes in 1 blocks are possibly lost in loss record 930 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10220F39: ??? -==401329== by 0x1021EC9D: ??? -==401329== by 0x1021F06D: ??? -==401329== by 0x10231236: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 1,008 bytes in 14 blocks are possibly lost in loss record 992 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 1,088 bytes in 2 blocks are possibly lost in loss record 995 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786928: smlua_cobject_init_globals (smlua_cobject.c:565) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 1,221 bytes in 3 blocks are possibly lost in loss record 999 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DBED: stbds_hmdel_key (stb_ds.h:890) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== -==401329== 1,296 bytes in 18 blocks are possibly lost in loss record 1,000 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 1,296 bytes in 18 blocks are possibly lost in loss record 1,001 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 1,317 (480 direct, 837 indirect) bytes in 3 blocks are definitely lost in loss record 1,003 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x70AADB: smlua_func_spawn_default_star (smlua_functions_autogen.c:9356) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 1,372 bytes in 4 blocks are definitely lost in loss record 1,006 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DBED: stbds_hmdel_key (stb_ds.h:890) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x6509BB: game_deinit (pc_main.c:271) -==401329== by 0x650A17: game_exit (pc_main.c:278) -==401329== by 0x677AF1: gfx_sdl_handle_events (gfx_sdl2.c:213) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x65175D: crash_handler_produce_one_frame (crash_handler.c:204) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x654331: crash_handler (crash_handler.c:660) -==401329== -==401329== 1,440 bytes in 20 blocks are possibly lost in loss record 1,007 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 1,440 bytes in 20 blocks are possibly lost in loss record 1,008 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 1,584 bytes in 22 blocks are possibly lost in loss record 1,009 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 1,584 bytes in 22 blocks are possibly lost in loss record 1,010 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BCC8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 1,632 bytes in 3 blocks are possibly lost in loss record 1,011 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 1,944 bytes in 27 blocks are possibly lost in loss record 1,016 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 2,016 bytes in 28 blocks are possibly lost in loss record 1,017 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DB24: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E188: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 2,088 bytes in 29 blocks are possibly lost in loss record 1,021 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DEFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 2,232 bytes in 31 blocks are possibly lost in loss record 1,022 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 2,258 (184 direct, 2,074 indirect) bytes in 1 blocks are definitely lost in loss record 1,023 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xDFA7FB5: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11) -==401329== by 0xDFA8DBD: dbus_message_new_method_call (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11) -==401329== by 0xDF9A61C: dbus_bus_register (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11) -==401329== by 0xDF9A8B3: ??? (in /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.19.11) -==401329== by 0x6D31872: SDL_DBus_Init_Spinlocked (SDL_dbus.c:146) -==401329== by 0x6D31872: SDL_DBus_Init (SDL_dbus.c:169) -==401329== by 0x6C02C2F: SDL_InitSubSystem_REAL.part.0 (SDL.c:163) -==401329== by 0x677737: gfx_sdl_init (gfx_sdl2.c:110) -==401329== by 0x676510: gfx_init (gfx_pc.c:1877) -==401329== by 0x650D49: main_func (pc_main.c:364) -==401329== by 0x650F34: main (pc_main.c:431) -==401329== -==401329== 3,096 bytes in 43 blocks are possibly lost in loss record 1,028 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 3,096 bytes in 43 blocks are possibly lost in loss record 1,029 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94182B: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 3,456 bytes in 48 blocks are possibly lost in loss record 1,031 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E6DB: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB940522: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB9410DD: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941544: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== -==401329== 3,816 bytes in 53 blocks are possibly lost in loss record 1,036 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 3,888 bytes in 54 blocks are possibly lost in loss record 1,037 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 4,185 bytes in 15 blocks are definitely lost in loss record 1,051 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E675: smlua_cpointer_allowlist_add (smlua_cobject_allowlist.c:91) -==401329== by 0x7884C0: smlua_push_pointer (smlua_utils.c:439) -==401329== by 0x71F53E: smlua_func_get_level_name_sm64 (smlua_functions_autogen.c:13404) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 4,248 bytes in 59 blocks are possibly lost in loss record 1,056 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E152: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== by 0x737C414: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 4,320 bytes in 60 blocks are possibly lost in loss record 1,057 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0xB93AEC4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93AF7C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93BBFC: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93DFE9: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E2A4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB93E3FE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94177E: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB941E0D: snd_config_update_ref (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0xB94C8B9: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) -==401329== by 0x7364A5C: ??? (in /home/djoslin/sm64ex-coop/lib/bass/libbass.so) -==401329== -==401329== 5,625 (1,440 direct, 4,185 indirect) bytes in 15 blocks are definitely lost in loss record 1,062 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E5CC: smlua_cpointer_allowlist_add (smlua_cobject_allowlist.c:90) -==401329== by 0x7884C0: smlua_push_pointer (smlua_utils.c:439) -==401329== by 0x71F53E: smlua_func_get_level_name_sm64 (smlua_functions_autogen.c:13404) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 7,418 bytes in 22 blocks are definitely lost in loss record 1,063 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DC26: stbds_hmdel_key (stb_ds.h:892) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x6509BB: game_deinit (pc_main.c:271) -==401329== by 0x650A17: game_exit (pc_main.c:278) -==401329== by 0x677AF1: gfx_sdl_handle_events (gfx_sdl2.c:213) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x65175D: crash_handler_produce_one_frame (crash_handler.c:204) -==401329== by 0x67784C: gfx_sdl_main_loop (gfx_sdl2.c:148) -==401329== by 0x654331: crash_handler (crash_handler.c:660) -==401329== -==401329== 7,779 bytes in 21 blocks are possibly lost in loss record 1,064 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DC26: stbds_hmdel_key (stb_ds.h:892) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== -==401329== 18,438 (6,720 direct, 11,718 indirect) bytes in 42 blocks are definitely lost in loss record 1,071 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x70AFB5: smlua_func_spawn_no_exit_star (smlua_functions_autogen.c:9413) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 18,972 bytes in 68 blocks are definitely lost in loss record 1,075 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E675: smlua_cpointer_allowlist_add (smlua_cobject_allowlist.c:91) -==401329== by 0x7884C0: smlua_push_pointer (smlua_utils.c:439) -==401329== by 0x70BF1A: smlua_func_get_behavior_from_id (smlua_functions_autogen.c:9602) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 25,500 (6,528 direct, 18,972 indirect) bytes in 68 blocks are definitely lost in loss record 1,078 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E5CC: smlua_cpointer_allowlist_add (smlua_cobject_allowlist.c:90) -==401329== by 0x7884C0: smlua_push_pointer (smlua_utils.c:439) -==401329== by 0x70BF1A: smlua_func_get_behavior_from_id (smlua_functions_autogen.c:9602) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 32,555 (6,024 direct, 26,531 indirect) bytes in 1 blocks are definitely lost in loss record 1,079 of 1,119 -==401329== at 0x6B21D99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C0C0: ??? -==401329== by 0x10222EC5: ??? -==401329== by 0x1021EB41: ??? -==401329== by 0x102203B2: ??? -==401329== by 0x10230F02: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 34,317 bytes in 123 blocks are definitely lost in loss record 1,081 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DC26: stbds_hmdel_key (stb_ds.h:892) -==401329== by 0x77E455: smlua_cpointer_allowlist_shutdown (smlua_cobject_allowlist.c:76) -==401329== by 0x77F67E: smlua_shutdown (smlua.c:198) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== -==401329== 56,079 bytes in 201 blocks are definitely lost in loss record 1,083 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786141: smlua__get_field (smlua_cobject.c:419) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FE37: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83DD18: luaT_callTM (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x840435: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 75,375 (19,296 direct, 56,079 indirect) bytes in 201 blocks are definitely lost in loss record 1,085 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786141: smlua__get_field (smlua_cobject.c:419) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FE37: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83DD18: luaT_callTM (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x840435: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 103,230 bytes in 370 blocks are definitely lost in loss record 1,087 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B83: smlua_cobject_init_globals (smlua_cobject.c:610) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 103,509 bytes in 371 blocks are definitely lost in loss record 1,088 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B58: smlua_cobject_init_globals (smlua_cobject.c:605) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 103,788 bytes in 372 blocks are definitely lost in loss record 1,089 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786A5F: smlua_cobject_init_globals (smlua_cobject.c:587) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 103,788 bytes in 372 blocks are definitely lost in loss record 1,090 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B12: smlua_cobject_init_globals (smlua_cobject.c:598) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 103,788 bytes in 372 blocks are definitely lost in loss record 1,091 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,092 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x76B6D3: smlua_func_spawn_non_sync_object (smlua_functions_autogen.c:29140) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x835490: luaD_pcall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,093 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BD9: smlua_cobject_init_globals (smlua_cobject.c:620) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,094 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C04: smlua_cobject_init_globals (smlua_cobject.c:625) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,095 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C2F: smlua_cobject_init_globals (smlua_cobject.c:630) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,096 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C5A: smlua_cobject_init_globals (smlua_cobject.c:635) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 104,067 bytes in 373 blocks are definitely lost in loss record 1,097 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C85: smlua_cobject_init_globals (smlua_cobject.c:640) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 123,375 (31,584 direct, 91,791 indirect) bytes in 329 blocks are definitely lost in loss record 1,098 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x76B6D3: smlua_func_spawn_non_sync_object (smlua_functions_autogen.c:29140) -==401329== by 0x834E7B: luaD_precall (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83FEF4: luaV_execute (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83514E: luaD_call (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x8351A0: luaD_callnoyield (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== by 0x83456D: luaD_rawrunprotected (in /home/djoslin/sm64ex-coop/build/us_pc/sm64.us.f3dex2e) -==401329== -==401329== 139,221 (35,712 direct, 103,509 indirect) bytes in 372 blocks are definitely lost in loss record 1,099 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BAE: smlua_cobject_init_globals (smlua_cobject.c:615) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,221 (35,712 direct, 103,509 indirect) bytes in 372 blocks are definitely lost in loss record 1,100 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C2F: smlua_cobject_init_globals (smlua_cobject.c:630) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,500 (35,712 direct, 103,788 indirect) bytes in 372 blocks are definitely lost in loss record 1,101 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C5A: smlua_cobject_init_globals (smlua_cobject.c:635) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,596 (35,808 direct, 103,788 indirect) bytes in 373 blocks are definitely lost in loss record 1,102 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B83: smlua_cobject_init_globals (smlua_cobject.c:610) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,596 (35,808 direct, 103,788 indirect) bytes in 373 blocks are definitely lost in loss record 1,103 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786BD9: smlua_cobject_init_globals (smlua_cobject.c:620) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,755 (1,024 direct, 138,731 indirect) bytes in 1 blocks are definitely lost in loss record 1,104 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x1022C856: ??? -==401329== by 0x10220FD2: ??? -==401329== by 0x1021F31E: ??? -==401329== by 0x10231ECF: ??? -==401329== by 0xEA3B9ED: ??? -==401329== by 0xEA93DD1: ??? -==401329== by 0xEA3B012: ??? -==401329== -==401329== 139,875 (35,808 direct, 104,067 indirect) bytes in 373 blocks are definitely lost in loss record 1,105 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786A5F: smlua_cobject_init_globals (smlua_cobject.c:587) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,875 (35,808 direct, 104,067 indirect) bytes in 373 blocks are definitely lost in loss record 1,106 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B58: smlua_cobject_init_globals (smlua_cobject.c:605) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,875 (35,808 direct, 104,067 indirect) bytes in 373 blocks are definitely lost in loss record 1,107 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C04: smlua_cobject_init_globals (smlua_cobject.c:625) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 139,875 (35,808 direct, 104,067 indirect) bytes in 373 blocks are definitely lost in loss record 1,108 of 1,119 -==401329== at 0x6B1F723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x6B22017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D168: stbds_hmget_key (stb_ds.h:670) -==401329== by 0x77E0E1: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:47) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786C85: smlua_cobject_init_globals (smlua_cobject.c:640) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== -==401329== 163,747 (59,680 direct, 104,067 indirect) bytes in 373 blocks are definitely lost in loss record 1,109 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786B12: smlua_cobject_init_globals (smlua_cobject.c:598) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 246,636 bytes in 372 blocks are definitely lost in loss record 1,111 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786928: smlua_cobject_init_globals (smlua_cobject.c:565) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 246,636 bytes in 372 blocks are definitely lost in loss record 1,112 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77D42D: stbds_hmput_key (stb_ds.h:738) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 304,231 (201,280 direct, 102,951 indirect) bytes in 370 blocks are definitely lost in loss record 1,113 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x7869C3: smlua_cobject_init_globals (smlua_cobject.c:576) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 305,333 (201,824 direct, 103,509 indirect) bytes in 371 blocks are definitely lost in loss record 1,114 of 1,119 -==401329== at 0x6B21FAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C2CD: stbds_arrgrowf (stb_ds.h:312) -==401329== by 0x77D794: stbds_hmput_key (stb_ds.h:812) -==401329== by 0x77E18A: smlua_cobject_allowlist_add (smlua_cobject_allowlist.c:48) -==401329== by 0x7883D8: smlua_push_object (smlua_utils.c:421) -==401329== by 0x786928: smlua_cobject_init_globals (smlua_cobject.c:565) -==401329== by 0x77F471: smlua_init (smlua.c:157) -==401329== by 0x68B8DC: debug_reload_lua (controller_keyboard_debug.c:83) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== -==401329== 510,535 bytes in 1,489 blocks are definitely lost in loss record 1,116 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DBED: stbds_hmdel_key (stb_ds.h:890) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== -==401329== 2,408,048 bytes in 6,928 blocks are definitely lost in loss record 1,118 of 1,119 -==401329== at 0x6B1F7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) -==401329== by 0x77C34C: stbds_make_hash_index (stb_ds.h:374) -==401329== by 0x77DC26: stbds_hmdel_key (stb_ds.h:892) -==401329== by 0x77DF5B: smlua_cobject_allowlist_shutdown (smlua_cobject_allowlist.c:32) -==401329== by 0x77F679: smlua_shutdown (smlua.c:197) -==401329== by 0x68B8D7: debug_reload_lua (controller_keyboard_debug.c:82) -==401329== by 0x68BAE1: debug_keyboard_on_key_down (controller_keyboard_debug.c:117) -==401329== by 0x67C9A2: keyboard_on_key_down (controller_keyboard.c:41) -==401329== by 0x67794D: gfx_sdl_onkeydown (gfx_sdl2.c:168) -==401329== by 0x677A55: gfx_sdl_handle_events (gfx_sdl2.c:188) -==401329== by 0x676564: gfx_start_frame (gfx_pc.c:1895) -==401329== by 0x6503CF: produce_interpolation_frames_and_delay (pc_main.c:179) -==401329== -==401329== LEAK SUMMARY: -==401329== definitely lost: 5,542,339 bytes in 18,851 blocks -==401329== indirectly lost: 1,600,468 bytes in 6,067 blocks -==401329== possibly lost: 75,375 bytes in 1,837 blocks -==401329== still reachable: 34,553,645 bytes in 1,805 blocks -==401329== suppressed: 0 bytes in 0 blocks -==401329== Reachable blocks (those to which a pointer was found) are not shown. -==401329== To see them, rerun with: --leak-check=full --show-leak-kinds=all -==401329== -==401329== Use --track-origins=yes to see where uninitialised values come from -==401329== For lists of detected and suppressed errors, rerun with: -s -==401329== ERROR SUMMARY: 178178 errors from 393 contexts (suppressed: 0 from 0) diff --git a/src/audio/external.c b/src/audio/external.c index b988a4c6..4cbe523b 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -453,7 +453,8 @@ OSPiHandle DriveRomHandle; // used in osDriveRomInit.c. Why here? s8 D_SH_80343E48_pad[0x8]; #endif -struct Sound sSoundRequests[0x100] = { 0 }; +#define MAX_SOUND_REQUESTS 0x100 +struct Sound sSoundRequests[MAX_SOUND_REQUESTS] = { 0 }; struct ChannelVolumeScaleFade sVolumeScaleFades[SEQUENCE_PLAYERS][CHANNELS_MAX] = { 0 }; u8 sUsedChannelsForSoundBank[SOUND_BANK_COUNT] = { 0 }; u8 sCurrentSound[SOUND_BANK_COUNT][MAX_CHANNELS_PER_SOUND_BANK] = { 0 }; // index into sSoundBanks @@ -669,6 +670,7 @@ void audio_reset_session_eu(s32 presetId) { * Called from threads: thread3_main, thread5_game_loop */ static void seq_player_fade_to_zero_volume(s32 player, FadeT fadeDuration) { + if (player >= SEQUENCE_PLAYERS) { return; } struct SequencePlayer *seqPlayer = &gSequencePlayers[player]; #ifndef VERSION_JP @@ -687,6 +689,7 @@ static void seq_player_fade_to_zero_volume(s32 player, FadeT fadeDuration) { * Called from threads: thread4_sound, thread5_game_loop */ static void seq_player_fade_from_zero_volume(s32 player, FadeT fadeInTime) { + if (player >= SEQUENCE_PLAYERS) { return; } struct SequencePlayer *seqPlayer = &gSequencePlayers[player]; if (fadeInTime == 0 || seqPlayer->state == SEQUENCE_PLAYER_STATE_FADE_OUT) { @@ -704,6 +707,7 @@ static void seq_player_fade_from_zero_volume(s32 player, FadeT fadeInTime) { * Called from threads: thread5_game_loop */ static void seq_player_fade_to_percentage_of_volume(s32 player, FadeT fadeDuration, u8 percentage) { + if (player >= SEQUENCE_PLAYERS) { return; } struct SequencePlayer *seqPlayer = &gSequencePlayers[player]; f32 targetVolume; @@ -739,6 +743,7 @@ static void seq_player_fade_to_percentage_of_volume(s32 player, FadeT fadeDurati * Called from threads: thread3_main, thread4_sound, thread5_game_loop */ static void seq_player_fade_to_normal_volume(s32 player, FadeT fadeDuration) { + if (player >= SEQUENCE_PLAYERS) { return; } struct SequencePlayer *seqPlayer = &gSequencePlayers[player]; #if defined(VERSION_EU) || defined(VERSION_SH) @@ -770,6 +775,7 @@ static void seq_player_fade_to_normal_volume(s32 player, FadeT fadeDuration) { * Called from threads: thread3_main, thread4_sound, thread5_game_loop */ static void seq_player_fade_to_target_volume(s32 player, FadeT fadeDuration, u8 targetVolume) { + if (player >= SEQUENCE_PLAYERS) { return; } struct SequencePlayer *seqPlayer = &gSequencePlayers[player]; #if defined(VERSION_JP) || defined(VERSION_US) @@ -871,6 +877,7 @@ void play_sound_with_freq_scale(s32 soundBits, f32* pos, f32 freqScale) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static void process_sound_request(u32 bits, f32 *pos, f32 freqScale) { + if (!pos) { return; } u8 bank; u8 soundIndex; u8 counter = 0; @@ -881,6 +888,8 @@ static void process_sound_request(u32 bits, f32 *pos, f32 freqScale) { bank = (bits & SOUNDARGS_MASK_BANK) >> SOUNDARGS_SHIFT_BANK; soundId = (bits & SOUNDARGS_MASK_SOUNDID) >> SOUNDARGS_SHIFT_SOUNDID; + if (bank >= SOUND_BANK_COUNT) { return; } + if (soundId >= sNumSoundsPerBank[bank] || sSoundBankDisabled[bank]) { return; } @@ -975,6 +984,7 @@ static void process_all_sound_requests(void) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static void delete_sound_from_bank(u8 bank, u8 soundIndex) { + if (bank >= SOUND_BANK_COUNT || soundIndex >= SOUND_INDEX_COUNT) { return; } if (sSoundBankUsedListBack[bank] == soundIndex) { // Remove from end of used list sSoundBankUsedListBack[bank] = sSoundBanks[bank][soundIndex].prev; @@ -997,6 +1007,7 @@ static void delete_sound_from_bank(u8 bank, u8 soundIndex) { * Called from threads: thread3_main, thread4_sound, thread5_game_loop */ static void update_background_music_after_sound(u8 bank, u8 soundIndex) { + if (bank >= SOUND_BANK_COUNT || soundIndex >= SOUND_INDEX_COUNT) { return; } if (sSoundBanks[bank][soundIndex].soundBits & SOUND_LOWER_BACKGROUND_MUSIC) { sSoundBanksThatLowerBackgroundMusic &= (1 << bank) ^ 0xffff; begin_background_music_fade(50); @@ -1007,6 +1018,7 @@ static void update_background_music_after_sound(u8 bank, u8 soundIndex) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static void select_current_sounds(u8 bank) { + if (bank >= SOUND_BANK_COUNT) { return; } u32 isDiscreteAndStatus; u8 latestSoundIndex; u8 i; @@ -1252,6 +1264,7 @@ f32 get_sound_pan(f32 x, f32 z) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static f32 get_sound_volume(u8 bank, u8 soundIndex, f32 volumeRange) { + if (bank >= SOUND_BANK_COUNT || soundIndex >= SOUND_INDEX_COUNT) { return 0; } f32 maxSoundDistance; f32 intensity; #ifndef VERSION_JP @@ -1307,6 +1320,7 @@ static f32 get_sound_volume(u8 bank, u8 soundIndex, f32 volumeRange) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static f32 get_sound_freq_scale(u8 bank, u8 item) { + if (bank >= SOUND_BANK_COUNT || item >= SOUND_INDEX_COUNT) { return 0; } f32 amount; if (!(sSoundBanks[bank][item].soundBits & SOUND_CONSTANT_FREQUENCY)) { @@ -1327,6 +1341,7 @@ static f32 get_sound_freq_scale(u8 bank, u8 item) { * Called from threads: thread4_sound, thread5_game_loop (EU only) */ static u8 get_sound_reverb(UNUSED u8 bank, UNUSED u8 soundIndex, u8 channelIndex) { + if (bank >= SOUND_BANK_COUNT || soundIndex >= SOUND_INDEX_COUNT || channelIndex >= CHANNELS_MAX) { return 0; } u8 area; u8 level; u8 reverb; @@ -1808,6 +1823,7 @@ static void seq_player_play_sequence(u8 player, u8 seqId, u16 arg2) { * Called from threads: thread5_game_loop */ void seq_player_fade_out(u8 player, u16 fadeDuration) { + if (player >= SEQUENCE_PLAYERS) { return; } #if defined(VERSION_EU) || defined(VERSION_SH) #ifdef VERSION_EU u32 fd = fadeDuration; @@ -2059,6 +2075,7 @@ void unused_8031FED0(u8 player, u32 bits, s8 arg2) { * Called from threads: thread5_game_loop */ void seq_player_lower_volume(u8 player, u16 fadeDuration, u8 percentage) { + if (player >= SEQUENCE_PLAYERS) { return; } if (player == SEQ_PLAYER_LEVEL) { sLowerBackgroundMusicVolume = TRUE; begin_background_music_fade(fadeDuration); @@ -2076,6 +2093,7 @@ void seq_player_lower_volume(u8 player, u16 fadeDuration, u8 percentage) { * Called from threads: thread5_game_loop */ void seq_player_unlower_volume(u8 player, u16 fadeDuration) { + if (player >= SEQUENCE_PLAYERS) { return; } sLowerBackgroundMusicVolume = FALSE; if (player == SEQ_PLAYER_LEVEL) { if (gSequencePlayers[player].state != SEQUENCE_PLAYER_STATE_FADE_OUT) { @@ -2170,7 +2188,7 @@ void sound_init(void) { for (i = 0; i < SOUND_BANK_COUNT; i++) { // Set each sound in the bank to STOPPED - for (j = 0; j < 40; j++) { + for (j = 0; j < SOUND_INDEX_COUNT; j++) { sSoundBanks[i][j].soundStatus = SOUND_STATUS_STOPPED; } @@ -2198,7 +2216,7 @@ void sound_init(void) { sSoundBanks[i][j].next = 0xff; } - for (j = 0; j < 3; j++) { + for (j = 0; j < SEQUENCE_PLAYERS; j++) { for (i = 0; i < CHANNELS_MAX; i++) { sVolumeScaleFades[j][i].remainingFrames = 0; } @@ -2227,6 +2245,7 @@ void sound_init(void) { // (unused) void get_currently_playing_sound(u8 bank, u8 *numPlayingSounds, u8 *numSoundsInBank, u8 *soundId) { + if (bank >= SOUND_BANK_COUNT || !numPlayingSounds || !numSoundsInBank || !soundId) { return; } u8 i; u8 count = 0; @@ -2251,6 +2270,7 @@ void get_currently_playing_sound(u8 bank, u8 *numPlayingSounds, u8 *numSoundsInB */ void stop_sound(u32 soundBits, f32 *pos) { u8 bank = (soundBits & SOUNDARGS_MASK_BANK) >> SOUNDARGS_SHIFT_BANK; + if (bank >= SOUND_BANK_COUNT) { return; } u8 soundIndex = sSoundBanks[bank][0].next; while (soundIndex != 0xff) { @@ -2295,6 +2315,7 @@ void stop_sounds_from_source(f32 *pos) { * Called from threads: thread3_main, thread5_game_loop */ static void stop_sounds_in_bank(u8 bank) { + if (bank >= SOUND_BANK_COUNT) { return; } u8 soundIndex = sSoundBanks[bank][0].next; while (soundIndex != 0xff) { @@ -2357,6 +2378,7 @@ void sound_banks_enable(UNUSED u8 player, u16 bankMask) { } u8 unused_803209D8(u8 player, u8 channelIndex, u8 arg2) { + if (player >= SEQUENCE_PLAYERS || channelIndex >= CHANNELS_MAX) { return 0; } u8 ret = 0; if (gSequencePlayers[player].channels[channelIndex] != &gSequenceChannelNone) { gSequencePlayers[player].channels[channelIndex]->stopSomething2 = arg2; @@ -2372,6 +2394,7 @@ u8 unused_803209D8(u8 player, u8 channelIndex, u8 arg2) { * Called from threads: thread5_game_loop */ void set_sound_moving_speed(u8 bank, u8 speed) { + if (bank >= SOUND_BANK_COUNT) { return; } sSoundMovingSpeed[bank] = speed; } @@ -2427,6 +2450,7 @@ void set_sequence_player_volume(s32 player, f32 volume) { * Called from threads: thread5_game_loop */ void play_music(u8 player, u16 seqArgs, u16 fadeTimer) { + if (player >= SEQUENCE_PLAYERS) { return; } u8 seqId = seqArgs & 0xff; u8 priority = seqArgs >> 8; u8 i; @@ -2842,6 +2866,7 @@ void unused_80321474(UNUSED s32 arg0) { } void sound_reset_background_music_default_volume(u8 seqId) { + if (seqId >= sizeof(sBackgroundMusicDefaultVolume) / sizeof(sBackgroundMusicDefaultVolume[0])) { return; } if (seqId >= SEQ_EVENT_CUTSCENE_LAKITU) { sBackgroundMusicDefaultVolume[seqId] = 75; return; diff --git a/src/audio/seqplayer.c b/src/audio/seqplayer.c index 76fba023..990da028 100644 --- a/src/audio/seqplayer.c +++ b/src/audio/seqplayer.c @@ -2303,7 +2303,9 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { #ifdef VERSION_EU if (1) {} #endif - seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; + if (loBits < LAYERS_MAX) { + seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; + } } break; @@ -2315,7 +2317,9 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { if (value != -1 && seq_channel_set_layer(seqChannel, loBits) != -1) { seqData = (*seqChannel->dynTable)[value]; sp5A = ((seqData[0] << 8) + seqData[1]); - seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; + if (loBits < LAYERS_MAX) { + seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; + } } break; diff --git a/src/engine/math_util.c b/src/engine/math_util.c index 664c167e..dca6024e 100644 --- a/src/engine/math_util.c +++ b/src/engine/math_util.c @@ -915,6 +915,7 @@ f32 atan2f(f32 y, f32 x) { * TODO: verify the classification of the spline / figure out how polynomials were computed */ void spline_get_weights(struct MarioState* m, Vec4f result, f32 t, UNUSED s32 c) { + if (!m) { return; } f32 tinv = 1 - t; f32 tinv2 = tinv * tinv; f32 tinv3 = tinv2 * tinv; @@ -964,6 +965,7 @@ void spline_get_weights(struct MarioState* m, Vec4f result, f32 t, UNUSED s32 c) * That's because the spline has a 3rd degree polynomial, so it looks 3 points ahead. */ void anim_spline_init(struct MarioState* m, Vec4s *keyFrames) { + if (!m) { return; } m->splineKeyframe = keyFrames; m->splineKeyframeFraction = 0; m->splineState = 1; @@ -975,6 +977,7 @@ void anim_spline_init(struct MarioState* m, Vec4s *keyFrames) { * Returns TRUE when the last point is reached, FALSE otherwise. */ s32 anim_spline_poll(struct MarioState* m, Vec3f result) { + if (!m) { return 0; } Vec4f weights = { 0 }; s32 i; s32 hasEnded = FALSE; diff --git a/src/engine/surface_load.c b/src/engine/surface_load.c index d81cd1c6..c837528a 100644 --- a/src/engine/surface_load.c +++ b/src/engine/surface_load.c @@ -33,7 +33,7 @@ SpatialPartitionCell gDynamicSurfacePartition[NUM_CELLS][NUM_CELLS]; /** * Pools of data to contain either surface nodes or surfaces. */ -struct SurfaceNode *sSurfaceNodePool; +struct SurfaceNode *sSurfaceNodePool = NULL; struct Surface *sSurfacePool; /** @@ -688,6 +688,7 @@ static void unused_80383604(void) { * Applies an object's transformation to the object's vertices. */ void transform_object_vertices(s16 **data, s16 *vertexData) { + if (!gCurrentObject) { return; } register s16 *vertices; register f32 vx, vy, vz; register s32 numVertices; @@ -728,6 +729,7 @@ void transform_object_vertices(s16 **data, s16 *vertexData) { * Load in the surfaces for the gCurrentObject. This includes setting the flags, exertion, and room. */ void load_object_surfaces(s16** data, s16* vertexData) { + if (!gCurrentObject) { return; } s32 surfaceType; s32 i; s32 numSurfaces; @@ -784,6 +786,7 @@ void load_object_surfaces(s16** data, s16* vertexData) { * Transform an object's vertices, reload them, and render the object. */ void load_object_collision_model(void) { + if (!gCurrentObject) { return; } if (gCurrentObject->collisionData == NULL) { return; } UNUSED s32 unused; diff --git a/src/game/behaviors/sound_birds.inc.c b/src/game/behaviors/sound_birds.inc.c index db7ea534..d1bdc386 100644 --- a/src/game/behaviors/sound_birds.inc.c +++ b/src/game/behaviors/sound_birds.inc.c @@ -1,7 +1,7 @@ // sound_birds.inc.c void bhv_birds_sound_loop(void) { - if (gCamera->mode == CAMERA_MODE_BEHIND_MARIO) + if (gCamera && gCamera->mode == CAMERA_MODE_BEHIND_MARIO) return; switch (o->oBehParams2ndByte) { diff --git a/src/game/camera.c b/src/game/camera.c index 2b340eae..9c784731 100644 --- a/src/game/camera.c +++ b/src/game/camera.c @@ -762,6 +762,7 @@ static UNUSED void set_pos_to_mario(Vec3f foc, Vec3f pos, f32 yOff, f32 focYOff, * Set the camera's y coordinate to goalHeight, respecting floors and ceilings in the way */ void set_camera_height(struct Camera *c, f32 goalHeight) { + if (!c) { return; } struct Surface *surface; f32 marioFloorHeight; f32 marioCeilHeight; @@ -855,6 +856,7 @@ s16 look_down_slopes(s16 camYaw) { * Since this function only affects the camera's focus, Mario's movement direction isn't affected. */ void pan_ahead_of_player(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch; s16 yaw; @@ -916,6 +918,7 @@ s16 find_in_bounds_yaw_wdw_bob_thi(UNUSED Vec3f pos, UNUSED Vec3f origin, s16 ya * Rotates the camera around the area's center point. */ s32 update_radial_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } f32 cenDistX = sMarioCamState->pos[0] - c->areaCenX; f32 cenDistZ = sMarioCamState->pos[2] - c->areaCenZ; s16 camYaw = atan2s(cenDistZ, cenDistX) + sModeOffsetYaw; @@ -940,6 +943,7 @@ s32 update_radial_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * Update the camera during 8 directional mode */ s32 update_8_directions_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } UNUSED f32 cenDistX = sMarioCamState->pos[0] - c->areaCenX; UNUSED f32 cenDistZ = sMarioCamState->pos[2] - c->areaCenZ; s16 camYaw = s8DirModeBaseYaw + s8DirModeYawOffset; @@ -969,6 +973,7 @@ s32 update_8_directions_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * If sModeOffsetYaw is 0, the camera points directly at the area center point. */ void radial_camera_move(struct Camera *c) { + if (!c) { return; } s16 maxAreaYaw = DEGREES(60); s16 minAreaYaw = DEGREES(-60); s16 rotateSpeed = 0x1000; @@ -1159,6 +1164,7 @@ void update_yaw_and_dist_from_c_up(UNUSED struct Camera *c) { * Handles input and updates for the radial camera mode */ void mode_radial_camera(struct Camera *c) { + if (!c) { return; } Vec3f pos; UNUSED u8 unused1[8]; s16 oldAreaYaw = sAreaYaw; @@ -1189,6 +1195,7 @@ void mode_radial_camera(struct Camera *c) { * A mode that only has 8 camera angles, 45 degrees apart */ void mode_8_directions_camera(struct Camera *c) { + if (!c) { return; } Vec3f pos; UNUSED u8 unused[8]; s16 oldAreaYaw = sAreaYaw; @@ -1217,6 +1224,7 @@ void mode_8_directions_camera(struct Camera *c) { * sModeOffsetYaw is calculated in radial_camera_move, which calls offset_yaw_outward_radial */ s32 update_outward_radial_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } f32 xDistFocToMario = sMarioCamState->pos[0] - c->areaCenX; f32 zDistFocToMario = sMarioCamState->pos[2] - c->areaCenZ; s16 camYaw = atan2s(zDistFocToMario, xDistFocToMario) + sModeOffsetYaw + DEGREES(180); @@ -1238,6 +1246,7 @@ s32 update_outward_radial_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * Input and updates for the outward radial mode. */ void mode_outward_radial_camera(struct Camera *c) { + if (!c) { return; } Vec3f pos; s16 oldAreaYaw = sAreaYaw; @@ -1268,6 +1277,7 @@ void mode_outward_radial_camera(struct Camera *c) { * so Mario will run slightly towards the camera. */ s32 update_parallel_tracking_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } Vec3f path[2]; Vec3f parMidPoint; Vec3f marioOffset; @@ -1457,6 +1467,7 @@ s32 update_parallel_tracking_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * Updates the camera during fixed mode. */ s32 update_fixed_camera(struct Camera *c, Vec3f focus, UNUSED Vec3f pos) { + if (!c) { return 0; } f32 focusFloorOff; f32 goalHeight; f32 ceilHeight; @@ -1548,6 +1559,7 @@ s32 update_fixed_camera(struct Camera *c, Vec3f focus, UNUSED Vec3f pos) { * Updates the camera during a boss fight */ s32 update_boss_fight_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } struct Object *o; UNUSED u8 filler2[12]; f32 focusDistance; @@ -1730,6 +1742,7 @@ static void stub_camera_1(UNUSED s32 unused) { } void mode_boss_fight_camera(struct Camera *c) { + if (!c) { return; } c->nextYaw = update_boss_fight_camera(c, c->focus, c->pos); } @@ -1739,6 +1752,7 @@ void mode_boss_fight_camera(struct Camera *c) { * @see update_parallel_tracking_camera */ void mode_parallel_tracking_camera(struct Camera *c) { + if (!c) { return; } s16 dummy = 0; radial_camera_input(c, 0.f); @@ -1751,6 +1765,7 @@ void mode_parallel_tracking_camera(struct Camera *c) { * Fixed camera mode, the camera rotates around a point and looks and zooms toward Mario. */ void mode_fixed_camera(struct Camera *c) { + if (!c) { return; } UNUSED u8 unused[8]; if (gCurrLevelNum == LEVEL_BBH) { @@ -1770,6 +1785,7 @@ void mode_fixed_camera(struct Camera *c) { * The C-Buttons rotate the camera 90 degrees left/right and 67.5 degrees up/down. */ s32 update_behind_mario_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } UNUSED u8 unused2[12]; f32 dist; UNUSED u8 unused3[4]; @@ -1916,6 +1932,7 @@ s32 update_behind_mario_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * "Behind Mario" mode: used when Mario is flying, on the water's surface, or shot from a cannon */ s32 mode_behind_mario(struct Camera *c) { + if (!c) { return 0; } struct MarioState *marioState = &gMarioStates[0]; struct Surface *floor; Vec3f newPos; @@ -1969,6 +1986,7 @@ s32 mode_behind_mario(struct Camera *c) { * In slide mode, keep the camera 800 units from Mario */ s16 update_slide_camera(struct Camera *c) { + if (!c) { return 0; } struct Surface *floor; f32 floorHeight; Vec3f pos; @@ -2045,6 +2063,7 @@ s16 update_slide_camera(struct Camera *c) { } void mode_behind_mario_camera(struct Camera *c) { + if (!c) { return; } c->nextYaw = mode_behind_mario(c); } @@ -2056,6 +2075,7 @@ s32 nop_update_water_camera(UNUSED struct Camera *c, UNUSED Vec3f focus, UNUSED * Exactly the same as BEHIND_MARIO */ void mode_water_surface_camera(struct Camera *c) { + if (!c) { return; } c->nextYaw = mode_behind_mario(c); } @@ -2075,6 +2095,7 @@ s32 update_mario_camera(UNUSED struct Camera *c, Vec3f focus, Vec3f pos) { * The camera moves behind Mario, and can rotate all the way around */ s16 update_default_camera(struct Camera *c) { + if (!c) { return 0; } Vec3f tempPos; Vec3f cPos; UNUSED u8 unused1[12]; @@ -2402,6 +2423,7 @@ s16 update_default_camera(struct Camera *c) { * Used by close and free roam modes */ void mode_default_camera(struct Camera *c) { + if (!c) { return; } set_fov_function(CAM_FOV_DEFAULT); c->nextYaw = update_default_camera(c); pan_ahead_of_player(c); @@ -2502,6 +2524,7 @@ s32 update_spiral_stairs_camera(struct Camera *c, Vec3f focus, Vec3f pos) { * The mode used in the spiral staircase in the castle */ void mode_spiral_stairs_camera(struct Camera *c) { + if (!c) { return; } c->nextYaw = update_spiral_stairs_camera(c, c->focus, c->pos); } @@ -2513,6 +2536,7 @@ s32 update_slide_or_0f_camera(UNUSED struct Camera *c, Vec3f focus, Vec3f pos) { } static UNUSED void unused_mode_0f_camera(struct Camera *c) { + if (!c) { return; } if ((sCurrPlayMode != PLAY_MODE_PAUSED) && gPlayer1Controller->buttonPressed & U_CBUTTONS) { gCameraMovementFlags |= CAM_MOVE_C_UP_MODE; } @@ -2524,6 +2548,7 @@ static UNUSED void unused_mode_0f_camera(struct Camera *c) { * In this mode, the camera is always at the back of Mario, because Mario generally only moves forward. */ void mode_slide_camera(struct Camera *c) { + if (!c) { return; } if (sMarioGeometry.currFloorType == SURFACE_CLOSE_CAMERA || sMarioGeometry.currFloorType == SURFACE_NO_CAM_COL_SLIPPERY) { mode_lakitu_camera(c); @@ -2536,6 +2561,7 @@ void mode_slide_camera(struct Camera *c) { } void store_lakitu_cam_info_for_c_up(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCameraStoreCUp.pos, c->pos); vec3f_sub(sCameraStoreCUp.pos, sMarioCamState->pos); // Only store the y value, and as an offset from Mario, for some reason @@ -2562,6 +2588,7 @@ s32 set_mode_c_up(struct Camera *c) { * direction. */ s32 exit_c_up(struct Camera *c) { + if (!c) { return 0; } struct Surface *surface; Vec3f checkFoc; Vec3f curPos; @@ -2710,6 +2737,7 @@ void move_mario_head_c_up(UNUSED struct Camera *c) { * Zooms the camera in for C-Up mode */ void move_into_c_up(struct Camera *c) { + if (!c) { return; } struct LinearTransitionPoint *start = &sModeInfo.transitionStart; struct LinearTransitionPoint *end = &sModeInfo.transitionEnd; @@ -2743,6 +2771,7 @@ void move_into_c_up(struct Camera *c) { * The main update function for C-Up mode */ s32 mode_c_up_camera(struct Camera *c) { + if (!c) { return 0; } UNUSED u8 unused[12]; // Play a sound when entering C-Up mode @@ -2801,6 +2830,7 @@ s32 update_in_cannon(UNUSED struct Camera *c, Vec3f focus, Vec3f pos) { * sCannonYOffset is used to make the camera rotate down when Mario has just entered the cannon */ void mode_cannon_camera(struct Camera *c) { + if (!c) { return; } UNUSED u8 unused[24]; sLakituPitch = 0; @@ -2839,6 +2869,7 @@ void transition_next_state(UNUSED struct Camera *c, s16 frames) { * namely: RADIAL/OUTWARD_RADIAL, 8_DIRECTIONS, FREE_ROAM, CLOSE, SPIRAL_STAIRS, and SLIDE_HOOT */ void transition_to_camera_mode(struct Camera *c, s16 newMode, s16 numFrames) { + if (!c) { return; } if (c->mode != newMode) { sModeInfo.newMode = (newMode != -1) ? newMode : sModeInfo.lastMode; sModeInfo.lastMode = c->mode; @@ -2913,7 +2944,7 @@ void set_camera_mode(struct Camera *c, s16 mode, s16 frames) { vec3f_copy(end->pos, c->pos); vec3f_sub(end->pos, sMarioCamState->pos); - if (sModeInfo.newMode != CAMERA_MODE_NONE) { + if (sModeInfo.newMode != CAMERA_MODE_NONE && (u32)sModeInfo.newMode < sizeof(sModeTransitions) / sizeof(sModeTransitions[0])) { sAreaYaw = sModeTransitions[sModeInfo.newMode](c, end->focus, end->pos); } @@ -2939,6 +2970,7 @@ void set_camera_mode(struct Camera *c, s16 mode, s16 frames) { * Updates Lakitu's position/focus and applies camera shakes. */ void update_lakitu(struct Camera *c) { + if (!c) { return; } struct Surface *floor = NULL; Vec3f newPos; Vec3f newFoc; @@ -3054,6 +3086,7 @@ void update_lakitu(struct Camera *c) { * Gets controller input, checks for cutscenes, handles mode changes, and moves the camera */ void update_camera(struct Camera *c) { + if (!c) { return; } UNUSED u8 unused[24]; gCamera = c; @@ -3298,6 +3331,7 @@ void soft_reset_camera(struct Camera* c) { * Reset all the camera variables to their arcane defaults */ void reset_camera(struct Camera *c) { + if (!c) { return; } gCamera = c; gCameraMovementFlags = 0; s2ndRotateFlags = 0; @@ -3373,6 +3407,7 @@ void reset_camera(struct Camera *c) { } void init_camera(struct Camera *c) { + if (!c) { return; } struct Surface *floor = NULL; struct Object *obj = NULL; Vec3f marioOffset; @@ -3608,6 +3643,7 @@ void select_mario_cam_mode(void) { * Allocate the GraphNodeCamera's config.camera, and copy `c`'s focus to the Camera's area center point. */ void create_camera(struct GraphNodeCamera *gc, struct AllocOnlyPool *pool) { + if (!gc) { return; } s16 mode = gc->config.mode; struct Camera *c = alloc_only_pool_alloc(pool, sizeof(struct Camera)); @@ -3628,6 +3664,7 @@ void create_camera(struct GraphNodeCamera *gc, struct AllocOnlyPool *pool) { * Copy Lakitu's pos and foc into `gc` */ void update_graph_node_camera(struct GraphNodeCamera *gc) { + if (!gc) { return; } UNUSED u8 unused[8]; UNUSED struct Camera *c = gc->config.camera; @@ -4867,6 +4904,7 @@ void shake_camera_roll(s16 *roll) { * pyramid or TTC. */ s32 offset_yaw_outward_radial(struct Camera *c, s16 areaYaw) { + if (!c) { return 0; } s16 yawGoal = DEGREES(60); s16 yaw = sModeOffsetYaw; f32 distFromAreaCenter; @@ -4984,6 +5022,7 @@ void play_sound_if_cam_switched_to_lakitu_or_mario(void) { * Handles input for radial, outwards radial, parallel tracking, and 8 direction mode. */ s32 radial_camera_input(struct Camera *c, UNUSED f32 unused) { + if (!c) { return 0; } s16 dummy = 0; if ((gCameraMovementFlags & CAM_MOVE_ENTERED_ROTATE_SURFACE) || !(gCameraMovementFlags & CAM_MOVE_ROTATE)) { @@ -5440,6 +5479,7 @@ void stub_camera_4(UNUSED s32 a, UNUSED s32 b, UNUSED s32 c, UNUSED s32 d) { * @param yawOff offset to Mario's faceAngle, changes the direction of `leftRight` and `forwBack` */ void set_focus_rel_mario(struct Camera *c, f32 leftRight, f32 yOff, f32 forwBack, s16 yawOff) { + if (!c) { return; } s16 yaw; UNUSED u16 unused; f32 focFloorYOff; @@ -5460,6 +5500,7 @@ void set_focus_rel_mario(struct Camera *c, f32 leftRight, f32 yOff, f32 forwBack * @param yawOff offset to Mario's faceAngle, changes the direction of `leftRight` and `forwBack` */ static void unused_set_pos_rel_mario(struct Camera *c, f32 leftRight, f32 yOff, f32 forwBack, s16 yawOff) { + if (!c) { return; } u16 yaw = sMarioCamState->faceAngle[1] + yawOff; c->pos[0] = sMarioCamState->pos[0] + forwBack * sins(yaw) + leftRight * coss(yaw); @@ -6330,6 +6371,7 @@ u32 set_mode_if_not_set_by_surface(struct Camera *c, u8 mode) { * Used in THI, check if Mario is standing on any of the special surfaces in that area */ void surface_type_modes_thi(struct Camera *c) { + if (!c) { return; } switch (sMarioGeometry.currFloorType) { case SURFACE_CLOSE_CAMERA: if (c->mode != CAMERA_MODE_CLOSE) { @@ -7165,6 +7207,7 @@ s16 cutscene_object(u8 cutscene, struct Object *o) { * Update the camera's yaw and nextYaw. This is called from cutscenes to ignore the camera mode's yaw. */ void update_camera_yaw(struct Camera *c) { + if (!c) { return; } c->nextYaw = calculate_yaw(c->focus, c->pos); c->yaw = c->nextYaw; #ifdef BETTERCAMERA @@ -7178,6 +7221,7 @@ void cutscene_reset_spline(void) { } void stop_cutscene_and_retrieve_stored_info(struct Camera *c) { + if (!c) { return; } gCutsceneTimer = CUTSCENE_STOP; c->cutscene = 0; vec3f_copy(c->focus, sCameraStoreCutscene.focus); @@ -7339,6 +7383,7 @@ void player2_rotate_cam(struct Camera *c, s16 minPitch, s16 maxPitch, s16 minYaw * Store camera info for the cannon opening cutscene */ void store_info_cannon(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCameraStoreCutscene.pos, c->pos); vec3f_copy(sCameraStoreCutscene.focus, c->focus); sCameraStoreCutscene.panDist = sPanDistance; @@ -7349,6 +7394,7 @@ void store_info_cannon(struct Camera *c) { * Retrieve camera info for the cannon opening cutscene */ void retrieve_info_cannon(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->pos, sCameraStoreCutscene.pos); vec3f_copy(c->focus, sCameraStoreCutscene.focus); sPanDistance = sCameraStoreCutscene.panDist; @@ -7359,6 +7405,7 @@ void retrieve_info_cannon(struct Camera *c) { * Store camera info for the star spawn cutscene */ void store_info_star(struct Camera *c) { + if (!c) { return; } reset_pan_distance(c); vec3f_copy(sCameraStoreCutscene.pos, c->pos); sCameraStoreCutscene.focus[0] = sMarioCamState->pos[0]; @@ -7370,6 +7417,7 @@ void store_info_star(struct Camera *c) { * Retrieve camera info for the star spawn cutscene */ void retrieve_info_star(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->pos, sCameraStoreCutscene.pos); vec3f_copy(c->focus, sCameraStoreCutscene.focus); } @@ -7392,6 +7440,7 @@ static UNUSED void unused_vec3f_to_vec3s(Vec3s dst, Vec3f src) { * Rotate the camera's focus around the camera's position by incYaw and incPitch */ void pan_camera(struct Camera *c, s16 incPitch, s16 incYaw) { + if (!c) { return; } UNUSED Vec3f unused1; f32 distCamToFocus; s16 pitch, yaw; @@ -7428,6 +7477,7 @@ void rotate_and_move_vec3f(Vec3f to, Vec3f from, f32 incDist, s16 incPitch, s16 } void set_flag_post_door(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_BEHIND_MARIO_POST_DOOR; sCameraYawAfterDoorCutscene = calculate_yaw(c->focus, c->pos); } @@ -7453,6 +7503,7 @@ BAD_RETURN(s32) cutscene_unused_loop(UNUSED struct Camera *c) { * Set the camera position and focus for when Mario falls from the sky. */ BAD_RETURN(s32) cutscene_ending_mario_fall_start(struct Camera *c) { + if (!c) { return; } vec3f_set(c->focus, -26.f, 0.f, -137.f); vec3f_set(c->pos, 165.f, 4725.f, 324.f); skip_camera_interpolation(); @@ -7462,6 +7513,7 @@ BAD_RETURN(s32) cutscene_ending_mario_fall_start(struct Camera *c) { * Focus on Mario when he's falling from the sky. */ BAD_RETURN(s32) cutscene_ending_mario_fall_focus_mario(struct Camera *c) { + if (!c) { return; } Vec3f offset; vec3f_set(offset, 0.f, 80.f, 0.f); @@ -7486,6 +7538,7 @@ BAD_RETURN(s32) cutscene_ending_mario_fall(struct Camera *c) { * Closeup of Mario as the wing cap fades and Mario looks up. */ BAD_RETURN(s32) cutscene_ending_mario_land_closeup(struct Camera *c) { + if (!c) { return; } vec3f_set(c->focus, 85.f, 826.f, 250.f); vec3f_set(c->pos, -51.f, 988.f, -202.f); skip_camera_interpolation(); @@ -7505,6 +7558,7 @@ BAD_RETURN(s32) cutscene_ending_reset_spline(UNUSED struct Camera *c) { * Follow sEndingFlyToWindowPos/Focus up to the window. */ BAD_RETURN(s32) cutscene_ending_fly_up_to_window(struct Camera *c) { + if (!c) { return; } move_point_along_spline(c->pos, sEndingFlyToWindowPos, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); move_point_along_spline(c->focus, sEndingFlyToWindowFocus, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); } @@ -7522,6 +7576,7 @@ BAD_RETURN(s32) cutscene_ending_stars_free_peach(struct Camera *c) { * Move the camera to the ground as Mario lands. */ BAD_RETURN(s32) cutscene_ending_mario_land(struct Camera *c) { + if (!c) { return; } vec3f_set(c->focus, sEndingFlyToWindowFocus[0].point[0], sEndingFlyToWindowFocus[0].point[1] + 80.f, sEndingFlyToWindowFocus[0].point[2]); vec3f_set(c->pos, sEndingFlyToWindowPos[0].point[0], sEndingFlyToWindowPos[0].point[1], sEndingFlyToWindowPos[0].point[2] + 150.f); player2_rotate_cam(c, -0x800, 0x2000, -0x2000, 0x2000); @@ -7531,6 +7586,7 @@ BAD_RETURN(s32) cutscene_ending_mario_land(struct Camera *c) { * Move the camera closer to peach appearing. */ BAD_RETURN(s32) cutscene_ending_peach_appear_closeup(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } // hacky fix to make sure cutscene focus is valid if (gCutsceneFocus == NULL) { gCutsceneFocus = gMarioStates[0].marioObj; @@ -7545,6 +7601,7 @@ BAD_RETURN(s32) cutscene_ending_peach_appear_closeup(struct Camera *c) { * Peach fades in, the camera focuses on her. */ BAD_RETURN(s32) cutscene_ending_peach_appears(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } cutscene_event(cutscene_ending_peach_appear_closeup, c, 0, 0); approach_f32_asymptotic_bool(&c->pos[1], gCutsceneFocus->oPosY + 35.f, 0.02f); approach_f32_asymptotic_bool(&c->focus[1], gCutsceneFocus->oPosY + 125.f, 0.15f); @@ -7564,6 +7621,7 @@ BAD_RETURN(s32) cutscene_ending_peach_descends_start(UNUSED struct Camera *c) { * Follow the sEndingPeachDescentCamPos spline, which rotates around peach. */ BAD_RETURN(s32) cutscene_ending_follow_peach_descent(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } move_point_along_spline(c->pos, sEndingPeachDescentCamPos, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); c->pos[1] += gCutsceneFocus->oPosY + sCutsceneVars[3].point[1]; } @@ -7579,6 +7637,7 @@ BAD_RETURN(s32) cutscene_ending_peach_descent_lower_focus(UNUSED struct Camera * * Keep following the sEndingPeachDescentCamPos spline, which leads back to Mario. */ BAD_RETURN(s32) cutscene_ending_peach_descent_back_to_mario(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } Vec3f pos; move_point_along_spline(pos, sEndingPeachDescentCamPos, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); @@ -7592,6 +7651,7 @@ BAD_RETURN(s32) cutscene_ending_peach_descent_back_to_mario(struct Camera *c) { * she lands. */ BAD_RETURN(s32) cutscene_ending_peach_descends(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } cutscene_event(cutscene_ending_peach_descends_start, c, 0, 0); cutscene_event(cutscene_ending_follow_peach_descent, c, 0, 299); cutscene_event(cutscene_ending_peach_descent_back_to_mario, c, 300, -1); @@ -7606,6 +7666,7 @@ BAD_RETURN(s32) cutscene_ending_peach_descends(struct Camera *c) { * Follow the sEndingMarioToPeach* splines while Mario runs across. */ BAD_RETURN(s32) cutscene_ending_mario_to_peach(struct Camera *c) { + if (!c) { return; } cutscene_event(cutscene_ending_reset_spline, c, 0, 0); move_point_along_spline(c->pos, sEndingMarioToPeachPos, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); move_point_along_spline(c->focus, sEndingMarioToPeachFocus, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); @@ -7616,6 +7677,7 @@ BAD_RETURN(s32) cutscene_ending_mario_to_peach(struct Camera *c) { * Make the focus follow the sEndingLookUpAtCastle spline. */ BAD_RETURN(s32) cutscene_ending_look_up_at_castle(UNUSED struct Camera *c) { + if (!c) { return; } move_point_along_spline(c->focus, sEndingLookUpAtCastle, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); } @@ -7623,6 +7685,7 @@ BAD_RETURN(s32) cutscene_ending_look_up_at_castle(UNUSED struct Camera *c) { * Peach opens her eyes and the camera looks at the castle window again. */ BAD_RETURN(s32) cutscene_ending_peach_wakeup(struct Camera *c) { + if (!c) { return; } cutscene_event(cutscene_ending_reset_spline, c, 0, 0); cutscene_event(cutscene_ending_look_up_at_castle, c, 0, 0); /**#ifdef VERSION_EU @@ -7642,6 +7705,7 @@ BAD_RETURN(s32) cutscene_ending_peach_wakeup(struct Camera *c) { * Side view of peach and Mario. Peach thanks Mario for saving her. */ BAD_RETURN(s32) cutscene_ending_dialog(struct Camera *c) { + if (!c) { return; } vec3f_set(c->focus, 11.f, 983.f, -1273.f); vec3f_set(c->pos, -473.f, 970.f, -1152.f); skip_camera_interpolation(); @@ -7652,6 +7716,7 @@ BAD_RETURN(s32) cutscene_ending_dialog(struct Camera *c) { * Zoom in and move the camera close to Mario and peach. */ BAD_RETURN(s32) cutscene_ending_kiss_closeup(struct Camera *c) { + if (!c) { return; } set_fov_function(CAM_FOV_SET_29); vec3f_set(c->focus, 350.f, 1034.f, -1216.f); vec3f_set(c->pos, -149.f, 1021.f, -1216.f); @@ -7662,6 +7727,7 @@ BAD_RETURN(s32) cutscene_ending_kiss_closeup(struct Camera *c) { * Fly back and zoom out for Mario's spin after the kiss. */ BAD_RETURN(s32) cutscene_ending_kiss_here_we_go(struct Camera *c) { + if (!c) { return; } Vec3f pos, foc; set_fov_function(CAM_FOV_DEFAULT); @@ -7689,6 +7755,7 @@ BAD_RETURN(s32) cutscene_ending_kiss(struct Camera *c) { * Make the focus follow sEndingLookAtSkyFocus. */ BAD_RETURN(s32) cutscene_ending_look_at_sky(struct Camera *c) { + if (!c) { return; } move_point_along_spline(c->focus, sEndingLookAtSkyFocus, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); vec3f_set(c->pos, 699.f, 1680.f, -703.f); skip_camera_interpolation(); @@ -7720,6 +7787,7 @@ BAD_RETURN(s32) cutscene_ending_cake_for_mario(struct Camera *c) { * Stop the ending cutscene, reset the fov. */ BAD_RETURN(s32) cutscene_ending_stop(struct Camera *c) { + if (!c) { return; } set_fov_function(CAM_FOV_SET_45); c->cutscene = 0; gCutsceneTimer = CUTSCENE_STOP; @@ -7740,6 +7808,7 @@ BAD_RETURN(s32) cutscene_grand_star_start(UNUSED struct Camera *c) { * Make the camera fly to the front of Mario. */ BAD_RETURN(s32) cutscene_grand_star_front_of_mario(struct Camera *c) { + if (!c) { return; } f32 goalDist; s16 goalPitch, goalYaw; f32 dist; @@ -7773,6 +7842,7 @@ BAD_RETURN(s32) cutscene_grand_star_accel_cvar2(UNUSED struct Camera *c) { * Decrease cvar2 offset, follow Mario by directly updating the camera's pos. */ BAD_RETURN(s32) cutscene_grand_star_approach_mario(struct Camera *c) { + if (!c) { return; } camera_approach_f32_symmetric_bool(&sCutsceneVars[2].point[2], 0.f, 2.f); sCutsceneVars[2].point[0] = 0.f; approach_f32_asymptotic_bool(&c->pos[0], sMarioCamState->pos[0], 0.01f); @@ -7784,10 +7854,12 @@ BAD_RETURN(s32) cutscene_grand_star_approach_mario(struct Camera *c) { * After the triple jump, cvar2 decelerates to 0. */ BAD_RETURN(s32) cutscene_grand_star_move_cvar2(struct Camera *c) { + if (!c) { return; } offset_rotated(c->pos, c->pos, sCutsceneVars[2].point, sCutsceneVars[0].angle); } BAD_RETURN(s32) cutscene_grand_star_focus_mario(struct Camera *c) { + if (!c) { return; } Vec3f foc; vec3f_set(foc, sMarioCamState->pos[0], (sMarioCamState->pos[1] - 307.f) * 0.5f + 407.f, sMarioCamState->pos[2]); @@ -7812,6 +7884,7 @@ BAD_RETURN(s32) cutscene_grand_star(struct Camera *c) { * Zero the cvars that are used when Mario is flying. */ BAD_RETURN(s32) cutscene_grand_star_fly_start(struct Camera *c) { + if (!c) { return; } //! cvar7 is unused in grand star vec3f_set(sCutsceneVars[7].point, 0.5f, 0.5f, 0.5f); //! cvar6 is unused in grand star @@ -7859,6 +7932,7 @@ BAD_RETURN(s32) cutscene_grand_star_fly_mario_offscreen(UNUSED struct Camera *c) * cvar5 is the focus offset. */ BAD_RETURN(s32) cutscene_grand_star_fly_app_cvars(struct Camera *c) { + if (!c) { return; } Vec3f goalPos, goalFoc; f32 dist; s16 pitch, yaw; @@ -7899,6 +7973,7 @@ BAD_RETURN(s32) cutscene_grand_star_fly(struct Camera *c) { * distance will focus in front of Mario, and a positive distance will focus behind him. */ void focus_in_front_of_mario(struct Camera *c, f32 dist, f32 speed) { + if (!c) { return; } Vec3f goalFocus, offset; offset[0] = 0.f; @@ -7914,6 +7989,7 @@ void focus_in_front_of_mario(struct Camera *c, f32 dist, f32 speed) { * to worry about the camera's yaw. */ BAD_RETURN(s32) cutscene_dance_move_to_mario(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -7924,14 +8000,17 @@ BAD_RETURN(s32) cutscene_dance_move_to_mario(struct Camera *c) { } BAD_RETURN(s32) cutscene_dance_rotate(struct Camera *c) { + if (!c) { return; } rotate_and_move_vec3f(c->pos, sMarioCamState->pos, 0, 0, 0x200); } BAD_RETURN(s32) cutscene_dance_rotate_move_back(struct Camera *c) { + if (!c) { return; } rotate_and_move_vec3f(c->pos, sMarioCamState->pos, -15.f, 0, 0); } BAD_RETURN(s32) cutscene_dance_rotate_move_towards_mario(struct Camera *c) { + if (!c) { return; } rotate_and_move_vec3f(c->pos, sMarioCamState->pos, 20.f, 0, 0); } @@ -7965,6 +8044,7 @@ BAD_RETURN(s32) cutscene_dance_shake_fov(UNUSED struct Camera *c) { * In the rotate dance: the camera moves closer and rotates clockwise around Mario. */ BAD_RETURN(s32) cutscene_dance_default_rotate(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_SMOOTH_MOVEMENT; sYawSpeed = 0; set_fov_function(CAM_FOV_DEFAULT); @@ -7996,6 +8076,7 @@ BAD_RETURN(s32) cutscene_dance_default_rotate(struct Camera *c) { * If the camera's yaw is out of the range of `absYaw` +- `yawMax`, then set the yaw to `absYaw` */ BAD_RETURN(s32) star_dance_bound_yaw(struct Camera *c, s16 absYaw, s16 yawMax) { + if (!c) { return; } s16 dummyPitch, yaw; f32 distCamToMario; s16 yawFromAbs; @@ -8019,6 +8100,7 @@ BAD_RETURN(s32) star_dance_bound_yaw(struct Camera *c, s16 absYaw, s16 yawMax) { * Store the camera's focus in cvar9. */ BAD_RETURN(s32) cutscene_dance_closeup_start(struct Camera *c) { + if (!c) { return; } UNUSED s32 pad[2]; if ((gLastCompletedStarNum == 4) && (gCurrCourseNum == COURSE_JRB)) { @@ -8040,6 +8122,7 @@ BAD_RETURN(s32) cutscene_dance_closeup_start(struct Camera *c) { * Focus the camera on Mario eye height. */ BAD_RETURN(s32) cutscene_dance_closeup_focus_mario(struct Camera *c) { + if (!c) { return; } Vec3f marioPos; vec3f_set(marioPos, sMarioCamState->pos[0], sMarioCamState->pos[1] + 125.f, sMarioCamState->pos[2]); @@ -8051,6 +8134,7 @@ BAD_RETURN(s32) cutscene_dance_closeup_focus_mario(struct Camera *c) { * Fly above Mario, looking down. */ BAD_RETURN(s32) cutscene_dance_closeup_fly_above(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; s16 goalPitch = 0x1800; @@ -8071,6 +8155,7 @@ BAD_RETURN(s32) cutscene_dance_closeup_fly_above(struct Camera *c) { * Fly closer right when Mario gives the peace sign. */ BAD_RETURN(s32) cutscene_dance_closeup_fly_closer(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -8124,6 +8209,7 @@ BAD_RETURN(s32) cutscene_dance_closeup(struct Camera *c) { * cvar8.point[2] is the amount to increase distance from Mario */ BAD_RETURN(s32) cutscene_dance_fly_away_start(struct Camera *c) { + if (!c) { return; } Vec3f areaCenter; vec3f_copy(sCutsceneVars[9].point, c->focus); @@ -8151,6 +8237,7 @@ BAD_RETURN(s32) cutscene_dance_fly_away_start(struct Camera *c) { } BAD_RETURN(s32) cutscene_dance_fly_away_approach_mario(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -8162,6 +8249,7 @@ BAD_RETURN(s32) cutscene_dance_fly_away_approach_mario(struct Camera *c) { } BAD_RETURN(s32) cutscene_dance_fly_away_focus_mario(struct Camera *c) { + if (!c) { return; } Vec3f marioPos; vec3f_set(marioPos, sMarioCamState->pos[0], sMarioCamState->pos[1] + 125.f, sMarioCamState->pos[2]); @@ -8173,6 +8261,7 @@ BAD_RETURN(s32) cutscene_dance_fly_away_focus_mario(struct Camera *c) { * Slowly pan the camera downwards and to the camera's right, using cvar9's angle. */ void cutscene_pan_cvar9(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->focus, sCutsceneVars[9].point); sCutsceneVars[9].angle[0] -= 29; sCutsceneVars[9].angle[1] += 29; @@ -8183,6 +8272,7 @@ void cutscene_pan_cvar9(struct Camera *c) { * Move backwards and rotate slowly around Mario. */ BAD_RETURN(s32) cutscene_dance_fly_rotate_around_mario(struct Camera *c) { + if (!c) { return; } cutscene_pan_cvar9(c); rotate_and_move_vec3f(c->pos, sMarioCamState->pos, sCutsceneVars[8].point[2], 0, 0); } @@ -8191,6 +8281,7 @@ BAD_RETURN(s32) cutscene_dance_fly_rotate_around_mario(struct Camera *c) { * Rotate quickly while Lakitu flies up. */ BAD_RETURN(s32) cutscene_dance_fly_away_rotate_while_flying(struct Camera *c) { + if (!c) { return; } rotate_and_move_vec3f(c->pos, sMarioCamState->pos, 0, 0, 0x80); } @@ -8218,6 +8309,7 @@ BAD_RETURN(s32) cutscene_dance_fly_away(struct Camera *c) { * Called every frame, starting after 10, so when these cvars are updated, the camera will jump. */ BAD_RETURN(s32) cutscene_key_dance_jump_cvar(struct Camera *c) { + if (!c) { return; } offset_rotated(c->pos, sMarioCamState->pos, sCutsceneVars[8].point, sMarioCamState->faceAngle); offset_rotated(c->focus, sMarioCamState->pos, sCutsceneVars[7].point, sMarioCamState->faceAngle); } @@ -8301,6 +8393,7 @@ BAD_RETURN(s32) cutscene_bowser_area_start_bowser_walking(UNUSED struct Camera * * isn't seen. After the first frame, cvar2.point is bowser's position. */ BAD_RETURN(s32) cutscene_bowser_arena_set_pos(struct Camera *c) { + if (!c) { return; } vec3f_set_dist_and_angle(sCutsceneVars[2].point, c->pos, sCutsceneVars[3].point[2], sCutsceneVars[3].angle[0], sCutsceneVars[3].angle[1]); vec3f_set(sCutsceneVars[2].point, gSecondCameraFocus->oPosX, gSecondCameraFocus->oPosY, @@ -8325,6 +8418,7 @@ BAD_RETURN(s32) cutscene_bowser_arena_focus_sine(UNUSED struct Camera *c) { * Set the camera focus according to cvar0 and cvar2. */ BAD_RETURN(s32) cutscene_bowser_arena_set_focus(struct Camera *c) { + if (!c) { return; } offset_rotated(c->focus, sCutsceneVars[2].point, sCutsceneVars[0].point, sCutsceneVars[2].angle); } @@ -8461,6 +8555,7 @@ BAD_RETURN(s32) cutscene_star_spawn_store_info(struct Camera *c) { * Focus on the top of the star. */ BAD_RETURN(s32) cutscene_star_spawn_focus_star(struct Camera *c) { + if (!c) { return; } UNUSED f32 hMul; Vec3f starPos; UNUSED f32 vMul; @@ -8476,6 +8571,7 @@ BAD_RETURN(s32) cutscene_star_spawn_focus_star(struct Camera *c) { * Use boss fight mode's update function to move the focus back. */ BAD_RETURN(s32) cutscene_star_spawn_update_boss_fight(struct Camera *c) { + if (!c) { return; } Vec3f pos, focus; update_boss_fight_camera(c, focus, pos); @@ -8509,6 +8605,7 @@ BAD_RETURN(s32) cutscene_star_spawn(struct Camera *c) { * Move the camera back to Mario. */ BAD_RETURN(s32) cutscene_star_spawn_back(struct Camera *c) { + if (!c) { return; } if ((c->mode == CAMERA_MODE_BOSS_FIGHT) && (set_cam_angle(0) == CAM_ANGLE_LAKITU)) { cutscene_event(cutscene_star_spawn_update_boss_fight, c, 0, -1); } else { @@ -8520,12 +8617,14 @@ BAD_RETURN(s32) cutscene_star_spawn_back(struct Camera *c) { } BAD_RETURN(s32) cutscene_star_spawn_end(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_SMOOTH_MOVEMENT; gCutsceneTimer = CUTSCENE_STOP; c->cutscene = 0; } BAD_RETURN(s32) cutscene_exit_waterfall_warp(struct Camera *c) { + if (!c) { return; } //! hardcoded position vec3f_set(c->pos, -3899.f, 39.f, -5671.f); } @@ -8534,6 +8633,7 @@ BAD_RETURN(s32) cutscene_exit_waterfall_warp(struct Camera *c) { * Look at Mario, used by cutscenes that play when Mario exits a course to castle grounds. */ BAD_RETURN(s32) cutscene_exit_to_castle_grounds_focus_mario(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->focus, sMarioCamState->pos); c->focus[1] = c->pos[1] + (sMarioCamState->pos[1] + 125.f - c->pos[1]) * 0.5f; approach_vec3f_asymptotic(c->focus, sMarioCamState->pos, 0.05f, 0.4f, 0.05f); @@ -8552,6 +8652,7 @@ BAD_RETURN(s32) cutscene_exit_waterfall(struct Camera *c) { * End the cutscene, used by cutscenes that play when Mario exits a course to castle grounds. */ BAD_RETURN(s32) cutscene_exit_to_castle_grounds_end(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_SMOOTH_MOVEMENT; gCutsceneTimer = CUTSCENE_STOP; c->cutscene = 0; @@ -8559,6 +8660,7 @@ BAD_RETURN(s32) cutscene_exit_to_castle_grounds_end(struct Camera *c) { } BAD_RETURN(s32) cutscene_exit_fall_to_castle_grounds_warp(struct Camera *c) { + if (!c) { return; } //! hardcoded position vec3f_set(c->pos, 5830.f, 32.f, 3985.f); } @@ -8586,6 +8688,7 @@ BAD_RETURN(s32) cutscene_red_coin_star_start(struct Camera *c) { * Look towards the star's x and z position */ BAD_RETURN(s32) cutscene_red_coin_star_focus_xz(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } approach_f32_asymptotic_bool(&c->focus[0], gCutsceneFocus->oPosX, 0.15f); approach_f32_asymptotic_bool(&c->focus[2], gCutsceneFocus->oPosZ, 0.15f); } @@ -8594,6 +8697,7 @@ BAD_RETURN(s32) cutscene_red_coin_star_focus_xz(struct Camera *c) { * Look towards the star's y position. Only active before the camera warp. */ BAD_RETURN(s32) cutscene_red_coin_star_focus_y(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } approach_f32_asymptotic_bool(&c->focus[1], gCutsceneFocus->oPosY, 0.1f); } @@ -8601,6 +8705,7 @@ BAD_RETURN(s32) cutscene_red_coin_star_focus_y(struct Camera *c) { * Look 80% up towards the star. Only active after the camera warp. */ BAD_RETURN(s32) cutscene_red_coin_star_look_up_at_star(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } c->focus[1] = sCutsceneVars[1].point[1] + (gCutsceneFocus->oPosY - sCutsceneVars[1].point[1]) * 0.8f; } @@ -8608,9 +8713,11 @@ BAD_RETURN(s32) cutscene_red_coin_star_look_up_at_star(struct Camera *c) { * Warp the camera near the star's spawn point */ BAD_RETURN(s32) cutscene_red_coin_star_warp(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw, posYaw; struct Object *o = gCutsceneFocus; + if (!o) { return; } vec3f_set(sCutsceneVars[1].point, o->oHomeX, o->oHomeY, o->oHomeZ); vec3f_get_dist_and_angle(sCutsceneVars[1].point, c->pos, &dist, &pitch, &yaw); @@ -8653,6 +8760,7 @@ BAD_RETURN(s32) cutscene_red_coin_star(struct Camera *c) { * End the red coin star spawning cutscene */ BAD_RETURN(s32) cutscene_red_coin_star_end(struct Camera *c) { + if (!c) { return; } retrieve_info_star(c); gCutsceneTimer = CUTSCENE_STOP; c->cutscene = 0; @@ -8670,6 +8778,7 @@ BAD_RETURN(s32) cutscene_red_coin_star_end(struct Camera *c) { * @param rotYaw constant yaw offset to add to the camera's focus */ void cutscene_goto_cvar_pos(struct Camera *c, f32 goalDist, s16 goalPitch, s16 rotPitch, s16 rotYaw) { + if (!c) { return; } UNUSED f32 unused1; f32 nextDist; s16 nextPitch, nextYaw; @@ -8729,6 +8838,7 @@ void cutscene_goto_cvar_pos(struct Camera *c, f32 goalDist, s16 goalPitch, s16 r * Store the camera's pos and focus, and copy the cannon's position to cvars. */ BAD_RETURN(s32) cutscene_prepare_cannon_start(struct Camera *c) { + if (!c) { return; } store_info_cannon(c); vec3f_copy(sCutsceneVars[0].point, c->focus); sCutsceneVars[2].point[0] = 30.f; @@ -8758,6 +8868,7 @@ void cannon_approach_prev(f32 *value, f32 target) { * Fly or warp back to the previous pos and focus, stored in sCameraStoreCutscene. */ BAD_RETURN(s32) cutscene_prepare_cannon_fly_back(struct Camera *c) { + if (!c) { return; } f32 distToPrevPos = calc_abs_dist(c->pos, sCameraStoreCutscene.pos); if (distToPrevPos < 8000.f) { @@ -8792,6 +8903,7 @@ BAD_RETURN(s32) cutscene_prepare_cannon(struct Camera *c) { * Stop the cannon opening cutscene. */ BAD_RETURN(s32) cutscene_prepare_cannon_end(struct Camera *c) { + if (!c) { return; } gCutsceneTimer = CUTSCENE_STOP; c->cutscene = 0; retrieve_info_cannon(c); @@ -8804,6 +8916,7 @@ BAD_RETURN(s32) cutscene_prepare_cannon_end(struct Camera *c) { * when Mario drowns. */ void water_death_move_to_mario_side(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; @@ -8820,6 +8933,7 @@ void death_goto_mario(struct Camera *c) { } BAD_RETURN(s32) cutscene_death_standing_start(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCutsceneVars[0].point, c->focus); vec3f_copy(sCutsceneVars[3].point, sMarioCamState->pos); sCutsceneVars[3].point[1] += 70.f; @@ -8843,6 +8957,7 @@ BAD_RETURN(s32) cutscene_death_standing(struct Camera *c) { } BAD_RETURN(s32) cutscene_death_stomach_start(struct Camera *c) { + if (!c) { return; } Vec3f offset = { 0, 40.f, -60.f }; offset_rotated(sCutsceneVars[3].point, sMarioCamState->pos, offset, sMarioCamState->faceAngle); @@ -8871,6 +8986,7 @@ BAD_RETURN(s32) cutscene_death_stomach(struct Camera *c) { } BAD_RETURN(s32) cutscene_bbh_death_start(struct Camera *c) { + if (!c) { return; } Vec3f dir = { 0, 40.f, 60.f }; offset_rotated(sCutsceneVars[3].point, sMarioCamState->pos, dir, sMarioCamState->faceAngle); @@ -8895,6 +9011,7 @@ BAD_RETURN(s32) cutscene_bbh_death(struct Camera *c) { * Copy the camera's focus to cvar0 */ BAD_RETURN(s32) cutscene_quicksand_death_start(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCutsceneVars[0].point, c->focus); } @@ -8902,6 +9019,7 @@ BAD_RETURN(s32) cutscene_quicksand_death_start(struct Camera *c) { * Fly closer to Mario. In WATER_DEATH, move to Mario's side. */ BAD_RETURN(s32) cutscene_quicksand_death_goto_mario(struct Camera *c) { + if (!c) { return; } cutscene_goto_cvar_pos(c, 400.f, 0x2800, 0x200, 0); if (c->cutscene == CUTSCENE_WATER_DEATH) { @@ -8938,6 +9056,7 @@ BAD_RETURN(s32) cutscene_suffocation_fly_away(UNUSED struct Camera *c) { * Keep Lakitu above the gas level. */ BAD_RETURN(s32) cutscene_suffocation_stay_above_gas(struct Camera *c) { + if (!c) { return; } UNUSED f32 unused1; f32 gasLevel; UNUSED f32 unused2; @@ -8956,6 +9075,7 @@ BAD_RETURN(s32) cutscene_suffocation_stay_above_gas(struct Camera *c) { * Quickly rotate around Mario. */ BAD_RETURN(s32) cutscene_suffocation_rotate(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; @@ -8977,6 +9097,7 @@ BAD_RETURN(s32) cutscene_suffocation(struct Camera *c) { } BAD_RETURN(s32) cutscene_enter_pool_start(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCutsceneVars[3].point, sMarioCamState->pos); if (gCurrLevelNum == LEVEL_CASTLE) { // entering HMC @@ -9006,6 +9127,7 @@ BAD_RETURN(s32) cutscene_enter_pool(struct Camera *c) { * Store the area's center position (which happens to be the pyramid, in SSL) in cvar3. */ BAD_RETURN(s32) cutscene_pyramid_top_explode_start(struct Camera *c) { + if (!c) { return; } reset_pan_distance(c); store_info_cannon(c); @@ -9024,6 +9146,7 @@ BAD_RETURN(s32) cutscene_pyramid_top_explode_zoom_in(UNUSED struct Camera *c) { * Look at the pyramid top. */ BAD_RETURN(s32) cutscene_pyramid_top_explode_focus(struct Camera *c) { + if (!c) { return; } approach_vec3f_asymptotic(c->focus, sCutsceneVars[3].point, 0.02f, 0.02f, 0.02f); sStatusFlags |= CAM_FLAG_SMOOTH_MOVEMENT; } @@ -9032,6 +9155,7 @@ BAD_RETURN(s32) cutscene_pyramid_top_explode_focus(struct Camera *c) { * Store the old pos and focus, then warp to the pyramid top. */ BAD_RETURN(s32) cutscene_pyramid_top_explode_warp(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -9051,6 +9175,7 @@ BAD_RETURN(s32) cutscene_pyramid_top_explode_warp(struct Camera *c) { * Close up view of the spinning pyramid top as it rises. */ BAD_RETURN(s32) cutscene_pyramid_top_explode_closeup(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -9075,6 +9200,7 @@ BAD_RETURN(s32) cutscene_pyramid_top_explode_cam_shake(UNUSED struct Camera *c) * Warp back to the old position, and start a heavy camera shake. */ BAD_RETURN(s32) cutscene_pyramid_top_explode_warp_back(struct Camera *c) { + if (!c) { return; } UNUSED u32 pad[2]; vec3f_copy(c->pos, sCutsceneVars[4].point); @@ -9109,6 +9235,7 @@ BAD_RETURN(s32) cutscene_pyramid_top_explode_end(struct Camera *c) { * Store the camera focus in cvar0, and store the top of the pyramid in cvar3. */ BAD_RETURN(s32) cutscene_enter_pyramid_top_start(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCutsceneVars[0].point, c->focus); vec3f_set(sCutsceneVars[3].point, c->areaCenX, 1280.f, c->areaCenZ); } @@ -9131,6 +9258,7 @@ BAD_RETURN(s32) cutscene_enter_pyramid_top(struct Camera *c) { } static void unused_cutscene_goto_cvar(struct Camera *c) { + if (!c) { return; } f32 dist; dist = calc_abs_dist(sCutsceneVars[3].point, sMarioCamState->pos); @@ -9145,6 +9273,7 @@ static void unused_cutscene_goto_cvar(struct Camera *c) { * cvar9.angle[1] is the yaw between Mario and the gCutsceneFocus */ BAD_RETURN(s32) cutscene_dialog_start(struct Camera *c) { + if (!c || !gCutsceneFocus) { return; } UNUSED f32 unused1; UNUSED s16 unused2; s16 yaw; @@ -9187,6 +9316,7 @@ BAD_RETURN(s32) cutscene_dialog_start(struct Camera *c) { * The camera's generally ends up looking over Mario's shoulder. */ BAD_RETURN(s32) cutscene_dialog_move_mario_shoulder(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; Vec3f focus, pos; @@ -9235,6 +9365,7 @@ BAD_RETURN(s32) cutscene_dialog_create_dialog_box(struct Camera *c) { * Cutscene that plays when Mario talks to an object. */ BAD_RETURN(s32) cutscene_dialog(struct Camera *c) { + if (!c) { return; } cutscene_event(cutscene_dialog_start, c, 0, 0); cutscene_event(cutscene_dialog_move_mario_shoulder, c, 0, -1); cutscene_event(cutscene_dialog_create_dialog_box, c, 10, 10); @@ -9268,6 +9399,7 @@ BAD_RETURN(s32) cutscene_dialog_set_flag(UNUSED struct Camera *c) { * Ends the dialog cutscene. */ BAD_RETURN(s32) cutscene_dialog_end(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_UNUSED_CUTSCENE_ACTIVE; c->cutscene = 0; clear_time_stop_flags(TIME_STOP_ENABLED | TIME_STOP_DIALOG); @@ -9292,6 +9424,7 @@ BAD_RETURN(s32) cutscene_read_message_start(struct Camera *c) { } static void unused_cam_to_mario(struct Camera *c) { + if (!c) { return; } Vec3s dir; vec3s_set(dir, 0, sMarioCamState->faceAngle[1], 0); @@ -9303,6 +9436,7 @@ static void unused_cam_to_mario(struct Camera *c) { * Cutscene that plays when Mario is reading a message (a sign or message on the wall) */ BAD_RETURN(s32) cutscene_read_message(struct Camera *c) { + if (!c) { return; } UNUSED u32 pad[2]; cutscene_event(cutscene_read_message_start, c, 0, 0); @@ -9349,6 +9483,7 @@ BAD_RETURN(s32) cutscene_read_message_set_flag(UNUSED struct Camera *c) { * End the message cutscene. */ BAD_RETURN(s32) cutscene_read_message_end(struct Camera *c) { + if (!c) { return; } sStatusFlags |= CAM_FLAG_UNUSED_CUTSCENE_ACTIVE; c->cutscene = 0; } @@ -9370,6 +9505,7 @@ BAD_RETURN(s32) cutscene_exit_succ_start(UNUSED struct Camera *c) { * Set the camera pos depending on which level Mario exited. */ BAD_RETURN(s32) cutscene_non_painting_set_cam_pos(struct Camera *c) { + if (!c) { return; } UNUSED u32 unused1; struct Surface *floor; UNUSED Vec3f unused2; @@ -9402,6 +9538,7 @@ BAD_RETURN(s32) cutscene_non_painting_set_cam_pos(struct Camera *c) { * Update the camera focus depending on which level Mario exited. */ BAD_RETURN(s32) cutscene_non_painting_set_cam_focus(struct Camera *c) { + if (!c) { return; } offset_rotated(c->focus, sCutsceneVars[7].point, sCutsceneVars[6].point, sCutsceneVars[7].angle); if ((gPrevLevel == LEVEL_COTMC) || (gPrevLevel == LEVEL_HMC) || (gPrevLevel == LEVEL_RR) @@ -9426,6 +9563,7 @@ BAD_RETURN(s32) cutscene_exit_bowser_succ_focus_left(UNUSED struct Camera *c) { * The shake lasts 32 frames. */ BAD_RETURN(s32) cutscene_exit_bowser_key_toss_shake(struct Camera *c) { + if (!c) { return; } //! Unnecessary check. if (c->cutscene == CUTSCENE_EXIT_BOWSER_SUCC) { set_camera_pitch_shake(0x800, 0x40, 0x800); @@ -9455,6 +9593,7 @@ BAD_RETURN(s32) cutscene_exit_bowser_succ(struct Camera *c) { * End a non-painting exit cutscene. Used by BBH and bowser courses. */ BAD_RETURN(s32) cutscene_non_painting_end(struct Camera *c) { + if (!c) { return; } c->cutscene = 0; if (c->defMode == CAMERA_MODE_CLOSE) { @@ -9561,6 +9700,7 @@ BAD_RETURN(s32) cutscene_non_painting_death(struct Camera *c) { * because cvar1 rotates until is reaches 0, so it's important that it's a multiple of 0x100. */ BAD_RETURN(s32) cutscene_cap_switch_press_start(struct Camera *c) { + if (!c) { return; } UNUSED s16 unused1; s16 yaw; UNUSED u32 pad[2]; @@ -9577,6 +9717,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press_start(struct Camera *c) { * front of Mario. */ BAD_RETURN(s32) cutscene_cap_switch_press_rotate_around_mario(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; UNUSED s16 unusedYaw = sMarioCamState->faceAngle[1] + 0x1000; @@ -9603,6 +9744,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press_rotate_around_mario(struct Camera *c) * Move the camera slightly downwards. */ BAD_RETURN(s32) cutscene_cap_switch_press_lower_cam(struct Camera *c) { + if (!c) { return; } rotate_and_move_vec3f(c->pos, sMarioCamState->pos, 0, -0x20, 0); } @@ -9610,6 +9752,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press_lower_cam(struct Camera *c) { * Move the camera closer to Mario. */ BAD_RETURN(s32) cutscene_cap_switch_press_approach_mario(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -9627,6 +9770,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press_approach_mario(struct Camera *c) { * Pan the camera left so that Mario is on the right side of the screen when the camera stops spinning. */ BAD_RETURN(s32) cutscene_cap_switch_press_pan_left(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->focus, sMarioCamState->pos); c->focus[1] += 110.f; camera_approach_s16_symmetric_bool(&sCutsceneVars[0].angle[1], 0x800, 0x20); @@ -9637,6 +9781,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press_pan_left(struct Camera *c) { * Create a dialog box with the cap switch's text. */ BAD_RETURN(s32) cutscene_cap_switch_press_create_dialog(UNUSED struct Camera *c) { + if (!gCutsceneFocus) { return; } create_dialog_box_with_response(gCutsceneFocus->oBehParams2ndByte + gBehaviorValues.dialogs.CapswitchBaseDialog); } @@ -9649,6 +9794,7 @@ static UNUSED BAD_RETURN(s32) unused_cap_switch_retrieve_info(struct Camera *c) * Cutscene that plays when Mario presses a cap switch. */ BAD_RETURN(s32) cutscene_cap_switch_press(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; @@ -9669,7 +9815,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press(struct Camera *c) { if ((get_dialog_id() == -1) && (sCutsceneVars[4].angle[0] != 0)) { sCutsceneDialogResponse = sCutsceneVars[4].angle[0]; - if (sCutsceneVars[4].angle[0] == 1) { + if (sCutsceneVars[4].angle[0] == 1 && gCutsceneFocus) { cap_switch_save(gCutsceneFocus->oBehParams2ndByte); } stop_cutscene_and_retrieve_stored_info(c); @@ -9685,6 +9831,7 @@ BAD_RETURN(s32) cutscene_cap_switch_press(struct Camera *c) { * cvar3 is the goal focus */ BAD_RETURN(s32) cutscene_unlock_key_door_start(struct Camera *c) { + if (!c) { return; } Vec3f posOff, focusOff; vec3f_copy(sCutsceneVars[0].point, c->pos); @@ -9700,6 +9847,7 @@ BAD_RETURN(s32) cutscene_unlock_key_door_start(struct Camera *c) { * Gives a better view of the key. */ BAD_RETURN(s32) cutscene_unlock_key_door_approach_mario(struct Camera *c) { + if (!c) { return; } approach_vec3f_asymptotic(c->pos, sCutsceneVars[2].point, 0.1f, 0.1f, 0.1f); approach_vec3f_asymptotic(c->focus, sCutsceneVars[3].point, 0.1f, 0.1f, 0.1f); } @@ -9718,6 +9866,7 @@ BAD_RETURN(s32) cutscene_unlock_key_door_stub(UNUSED struct Camera *c) { * Move back to the previous pos and focus, stored in cvar0 and cvar1. */ BAD_RETURN(s32) cutscene_unlock_key_door_fly_back(struct Camera *c) { + if (!c) { return; } approach_vec3f_asymptotic(c->pos, sCutsceneVars[0].point, 0.1f, 0.1f, 0.1f); approach_vec3f_asymptotic(c->focus, sCutsceneVars[1].point, 0.1f, 0.1f, 0.1f); } @@ -9747,6 +9896,7 @@ BAD_RETURN(s32) cutscene_unlock_key_door(UNUSED struct Camera *c) { */ s32 intro_peach_move_camera_start_to_pipe(struct Camera *c, struct CutsceneSplinePoint positionSpline[], struct CutsceneSplinePoint focusSpline[]) { + if (!c) { return 0; } Vec3f offset; s32 posReturn = 0; s32 focusReturn = 0; @@ -9802,6 +9952,7 @@ BAD_RETURN(s32) cutscene_intro_peach_start_to_pipe_spline(struct Camera *c) { * Loop the cutscene until Mario exits the dialog. */ BAD_RETURN(s32) cutscene_intro_peach_dialog(struct Camera *c) { + if (!c) { return; } if (get_dialog_id() == -1) { vec3f_copy(gLakituState.goalPos, c->pos); vec3f_copy(gLakituState.goalFocus, c->focus); @@ -9812,6 +9963,7 @@ BAD_RETURN(s32) cutscene_intro_peach_dialog(struct Camera *c) { } BAD_RETURN(s32) cutscene_intro_peach_follow_pipe_spline(struct Camera *c) { + if (!c) { return; } move_point_along_spline(c->pos, sIntroPipeToDialogPosition, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); move_point_along_spline(c->focus, sIntroPipeToDialogFocus, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); c->pos[0] -= gNetworkPlayers[0].globalIndex * 350.f; @@ -9863,6 +10015,7 @@ BAD_RETURN(s32) play_sound_intro_turn_on_hud(UNUSED struct Camera *c) { * Fly to the pipe. Near the end, the camera jumps to Lakitu's position and the hud turns on. */ BAD_RETURN(s32) cutscene_intro_peach_fly_to_pipe(struct Camera *c) { + if (!c) { return; } #if defined(VERSION_US) || defined(VERSION_SH) cutscene_event(play_sound_intro_turn_on_hud, c, 818, 818); #elif defined(VERSION_EU) @@ -9885,6 +10038,7 @@ BAD_RETURN(s32) cutscene_intro_peach_fly_to_pipe(struct Camera *c) { * Lakitu flies around the warp pipe, then Mario jumps out. */ BAD_RETURN(s32) cutscene_intro_peach_mario_appears(struct Camera *c) { + if (!c) { return; } UNUSED u32 pad[2]; sMarioCamState->cameraEvent = 0; @@ -9915,6 +10069,7 @@ BAD_RETURN(s32) cutscene_intro_peach_reset_fov(UNUSED struct Camera *c) { * Peach reads the letter to Mario. */ BAD_RETURN(s32) cutscene_intro_peach_letter(struct Camera *c) { + if (!c) { return; } cutscene_spawn_obj(5, 0); cutscene_event(cutscene_intro_peach_zoom_fov, c, 0, 0); cutscene_event(cutscene_intro_peach_start_letter_music, c, 65, 65); @@ -9986,6 +10141,7 @@ struct CutsceneSplinePoint gEndWavingFocus[] = { }; BAD_RETURN(s32) cutscene_end_waving(struct Camera *c) { + if (!c) { return; } cutscene_event(cutscene_end_waving_start, c, 0, 0); move_point_along_spline(c->pos, gEndWavingPos, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); move_point_along_spline(c->focus, gEndWavingFocus, &sCutsceneSplineSegment, &sCutsceneSplineSegmentProgress); @@ -10044,6 +10200,7 @@ extern struct CutsceneSplinePoint sCcmOutsideCreditsSplineFocus[]; * Follow splines through the courses of the game. */ BAD_RETURN(s32) cutscene_credits(struct Camera *c) { + if (!c) { return; } struct CutsceneSplinePoint *focus, *pos; cutscene_event(cutscene_credits_reset_spline, c, 0, 0); @@ -10153,6 +10310,7 @@ BAD_RETURN(s32) cutscene_credits(struct Camera *c) { * Set the camera pos relative to Mario. */ BAD_RETURN(s32) cutscene_sliding_doors_open_start(struct Camera *c) { + if (!c) { return; } f32 dist; s16 pitch, yaw; @@ -10198,6 +10356,7 @@ BAD_RETURN(s32) cutscene_sliding_doors_fly_back_up(UNUSED struct Camera *c) { * Follow Mario through the door, by approaching cvar1.point. */ BAD_RETURN(s32) cutscene_sliding_doors_follow_mario(struct Camera *c) { + if (!c) { return; } Vec3f pos; UNUSED u32 pad[5]; @@ -10242,6 +10401,7 @@ BAD_RETURN(s32) cutscene_sliding_doors_open(struct Camera *c) { * Ends the double door cutscene. */ BAD_RETURN(s32) cutscene_double_doors_end(struct Camera *c) { + if (!c) { return; } set_flag_post_door(c); c->cutscene = 0; sStatusFlags |= CAM_FLAG_SMOOTH_MOVEMENT; @@ -10255,6 +10415,7 @@ BAD_RETURN(s32) cutscene_enter_painting_stub(UNUSED struct Camera *c) { * zooms in until the star select screen appears. */ BAD_RETURN(s32) cutscene_enter_painting(struct Camera *c) { + if (!c) { return; } struct Surface *floor, *highFloor; Vec3f paintingPos, focus, focusOffset; Vec3s paintingAngle; @@ -10317,6 +10478,7 @@ BAD_RETURN(s32) cutscene_enter_painting(struct Camera *c) { * cvar2 is the camera's focus relative to Mario */ BAD_RETURN(s32) cutscene_exit_painting_start(struct Camera *c) { + if (!c) { return; } struct Surface *floor; f32 floorHeight; @@ -10346,6 +10508,7 @@ BAD_RETURN(s32) cutscene_exit_painting_start(struct Camera *c) { * Decrease cvar2's x and z offset, moving closer to Mario. */ BAD_RETURN(s32) cutscene_exit_painting_move_to_mario(struct Camera *c) { + if (!c) { return; } Vec3f pos; //! Tricky math: Since offset_rotated() flips Z offsets, you'd expect a positive Z offset to move @@ -10365,6 +10528,7 @@ BAD_RETURN(s32) cutscene_exit_painting_move_to_mario(struct Camera *c) { * Move the camera down to the floor Mario lands on. */ BAD_RETURN(s32) cutscene_exit_painting_move_to_floor(struct Camera *c) { + if (!c) { return; } struct Surface *floor; Vec3f floorHeight; @@ -10385,6 +10549,7 @@ BAD_RETURN(s32) cutscene_exit_painting_move_to_floor(struct Camera *c) { * Cutscene played when Mario leaves a painting, either due to death or collecting a star. */ BAD_RETURN(s32) cutscene_exit_painting(struct Camera *c) { + if (!c) { return; } cutscene_event(cutscene_exit_painting_start, c, 0, 0); cutscene_event(cutscene_exit_painting_move_to_mario, c, 5, -1); cutscene_event(cutscene_exit_painting_move_to_floor, c, 5, -1); @@ -10401,6 +10566,7 @@ BAD_RETURN(s32) cutscene_exit_painting(struct Camera *c) { * Unused. Warp the camera to Mario. */ BAD_RETURN(s32) cutscene_unused_exit_start(struct Camera *c) { + if (!c) { return; } UNUSED Vec3f unused1; UNUSED Vec3s unused2; Vec3f offset; @@ -10416,6 +10582,7 @@ BAD_RETURN(s32) cutscene_unused_exit_start(struct Camera *c) { * Unused. Focus on Mario as he exits. */ BAD_RETURN(s32) cutscene_unused_exit_focus_mario(struct Camera *c) { + if (!c) { return; } Vec3f focus; vec3f_set(focus, sMarioCamState->pos[0], sMarioCamState->pos[1] + 125.f, sMarioCamState->pos[2]); @@ -10428,6 +10595,7 @@ BAD_RETURN(s32) cutscene_unused_exit_focus_mario(struct Camera *c) { * Give control back to the player. */ BAD_RETURN(s32) cutscene_exit_painting_end(struct Camera *c) { + if (!c) { return; } #ifdef BETTERCAMERA if (newcam_active == 1) c->mode = CAMERA_MODE_NEWCAM; @@ -10445,6 +10613,7 @@ BAD_RETURN(s32) cutscene_exit_painting_end(struct Camera *c) { * End the cutscene, starting cannon mode. */ BAD_RETURN(s32) cutscene_enter_cannon_end(struct Camera *c) { + if (!c) { return; } sStatusFlags &= ~CAM_FLAG_SMOOTH_MOVEMENT; sStatusFlags |= CAM_FLAG_BLOCK_SMOOTH_MOVEMENT; c->mode = CAMERA_MODE_INSIDE_CANNON; @@ -10456,6 +10625,7 @@ BAD_RETURN(s32) cutscene_enter_cannon_end(struct Camera *c) { * Rotate around the cannon as it rises out of the hole. */ BAD_RETURN(s32) cutscene_enter_cannon_raise(struct Camera *c) { + if (!c) { return; } struct Object *o; UNUSED u32 pad[2]; f32 floorHeight; @@ -10501,6 +10671,7 @@ BAD_RETURN(s32) cutscene_enter_cannon_raise(struct Camera *c) { * Start the cannon entering cutscene */ BAD_RETURN(s32) cutscene_enter_cannon_start(struct Camera *c) { + if (!c) { return; } UNUSED u32 cvar3Start; UNUSED u32 cvar4Start; struct Object *o; @@ -10530,6 +10701,7 @@ BAD_RETURN(s32) cutscene_enter_cannon_start(struct Camera *c) { * Store the camera's pos and focus for the door cutscene */ BAD_RETURN(s32) cutscene_door_start(struct Camera *c) { + if (!c) { return; } vec3f_copy(sCutsceneVars[0].point, c->pos); vec3f_copy(sCutsceneVars[1].point, c->focus); } @@ -10538,6 +10710,7 @@ BAD_RETURN(s32) cutscene_door_start(struct Camera *c) { * Fix the camera in place while the door opens. */ BAD_RETURN(s32) cutscene_door_fix_cam(struct Camera *c) { + if (!c) { return; } vec3f_copy(c->pos, sCutsceneVars[0].point); vec3f_copy(c->focus, sCutsceneVars[1].point); skip_camera_interpolation(); @@ -10547,6 +10720,7 @@ BAD_RETURN(s32) cutscene_door_fix_cam(struct Camera *c) { * Loop until Mario is no longer using the door. */ BAD_RETURN(s32) cutscene_door_loop(struct Camera *c) { + if (!c) { return; } //! bitwise AND instead of boolean if ((sMarioCamState->action != ACT_PULLING_DOOR) & (sMarioCamState->action != ACT_PUSHING_DOOR)) { gCutsceneTimer = CUTSCENE_STOP; @@ -10558,6 +10732,7 @@ BAD_RETURN(s32) cutscene_door_loop(struct Camera *c) { * Warp the camera behind Mario. */ BAD_RETURN(s32) cutscene_door_move_behind_mario(struct Camera *c) { + if (!c) { return; } Vec3f camOffset; s16 doorRotation; @@ -10581,6 +10756,7 @@ BAD_RETURN(s32) cutscene_door_move_behind_mario(struct Camera *c) { * Follow Mario through the door. */ BAD_RETURN(s32) cutscene_door_follow_mario(struct Camera *c) { + if (!c) { return; } s16 pitch, yaw; f32 dist; @@ -10595,6 +10771,7 @@ BAD_RETURN(s32) cutscene_door_follow_mario(struct Camera *c) { * Ends the door cutscene. Sets the camera mode to close mode unless the default is free roam. */ BAD_RETURN(s32) cutscene_door_end(struct Camera *c) { + if (!c) { return; } #ifndef BETTERCAMERA if (c->defMode == CAMERA_MODE_FREE_ROAM) { c->mode = CAMERA_MODE_FREE_ROAM; @@ -10626,6 +10803,7 @@ BAD_RETURN(s32) cutscene_door_end(struct Camera *c) { * Used for entering a room that uses a specific camera mode, like the castle lobby or BBH */ BAD_RETURN(s32) cutscene_door_mode(struct Camera *c) { + if (!c) { return; } UNUSED u32 pad[2]; reset_pan_distance(c); @@ -11966,6 +12144,7 @@ void center_rom_hack_camera(void) { * A mode that has 8 camera angles, 45 degrees apart, that is slightly smarter */ void mode_rom_hack_camera(struct Camera *c) { + if (!c) { return; } extern bool configCameraInvertX; s16 oldAreaYaw = sAreaYaw; @@ -12068,6 +12247,7 @@ void mode_rom_hack_camera(struct Camera *c) { } s32 update_rom_hack_camera(struct Camera *c, Vec3f focus, Vec3f pos) { + if (!c) { return 0; } UNUSED f32 cenDistX = sMarioCamState->pos[0] - c->areaCenX; UNUSED f32 cenDistZ = sMarioCamState->pos[2] - c->areaCenZ; diff --git a/src/game/mario.c b/src/game/mario.c index 50f03445..90a443bb 100644 --- a/src/game/mario.c +++ b/src/game/mario.c @@ -706,6 +706,7 @@ s32 mario_facing_downhill(struct MarioState *m, s32 turnYaw) { */ u32 mario_floor_is_slippery(struct MarioState *m) { if (!m) { return FALSE; } + if (!m->floor) { return FALSE; } f32 normY; @@ -741,6 +742,7 @@ u32 mario_floor_is_slippery(struct MarioState *m) { */ s32 mario_floor_is_slope(struct MarioState *m) { if (!m) { return FALSE; } + if (!m->floor) { return FALSE; } f32 normY; if ((m->area->terrainType & TERRAIN_MASK) == TERRAIN_SLIDE @@ -774,6 +776,7 @@ s32 mario_floor_is_slope(struct MarioState *m) { */ s32 mario_floor_is_steep(struct MarioState *m) { if (!m) { return FALSE; } + if (!m->floor) { return FALSE; } f32 normY; s32 result = FALSE; diff --git a/src/game/mario_actions_airborne.c b/src/game/mario_actions_airborne.c index 5eab3854..c4eef2a3 100644 --- a/src/game/mario_actions_airborne.c +++ b/src/game/mario_actions_airborne.c @@ -25,6 +25,7 @@ #include "pc/cheats.h" void play_flip_sounds(struct MarioState *m, s16 frame1, s16 frame2, s16 frame3) { + if (!m) { return; } s32 animFrame = m->marioObj->header.gfx.animInfo.animFrame; if (animFrame == frame1 || animFrame == frame2 || animFrame == frame3) { play_sound(SOUND_ACTION_SPIN, m->marioObj->header.gfx.cameraToObject); @@ -32,6 +33,7 @@ void play_flip_sounds(struct MarioState *m, s16 frame1, s16 frame2, s16 frame3) } void play_far_fall_sound(struct MarioState *m) { + if (!m) { return; } u32 action = m->action; if (!(action & ACT_FLAG_INVULNERABLE) && action != ACT_TWIRLING && action != ACT_FLYING && !(m->flags & MARIO_UNKNOWN_18)) { @@ -44,6 +46,7 @@ void play_far_fall_sound(struct MarioState *m) { #ifndef VERSION_JP void play_knockback_sound(struct MarioState *m) { + if (!m) { return; } if (m->actionArg == 0 && (m->forwardVel <= -28.0f || m->forwardVel >= 28.0f)) { play_character_sound_if_no_flag(m, CHAR_SOUND_DOH, MARIO_MARIO_SOUND_PLAYED); } else { @@ -53,6 +56,7 @@ void play_knockback_sound(struct MarioState *m) { #endif s32 lava_boost_on_wall(struct MarioState *m) { + if (!m) { return 0; } bool allow = true; smlua_call_event_hooks_mario_param_and_int_ret_bool(HOOK_ALLOW_HAZARD_SURFACE, m, HAZARD_TYPE_LAVA_WALL, &allow); if ((gServerSettings.enableCheats && gCheats.godMode) || (!allow)) { return FALSE; } @@ -72,6 +76,7 @@ s32 lava_boost_on_wall(struct MarioState *m) { } s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) { + if (!m) { return 0; } if (gServerSettings.enableCheats && gCheats.godMode && m->playerIndex == 0) { return FALSE; } f32 fallHeight; @@ -114,6 +119,7 @@ s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) { } s32 check_kick_or_dive_in_air(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_B_PRESSED) { return set_mario_action(m, m->forwardVel > 28.0f ? ACT_DIVE : ACT_JUMP_KICK, 0); } @@ -121,6 +127,7 @@ s32 check_kick_or_dive_in_air(struct MarioState *m) { } s32 should_get_stuck_in_ground(struct MarioState *m) { + if (!m) { return 0; } if (m->floor == NULL) { return FALSE; } u32 terrainType = m->area->terrainType & TERRAIN_MASK; @@ -139,6 +146,7 @@ s32 should_get_stuck_in_ground(struct MarioState *m) { } s32 check_fall_damage_or_get_stuck(struct MarioState *m, u32 hardFallAction) { + if (!m) { return 0; } if (should_get_stuck_in_ground(m)) { #ifdef VERSION_JP play_character_sound(m, CHAR_SOUND_OOOF); @@ -156,13 +164,14 @@ s32 check_fall_damage_or_get_stuck(struct MarioState *m, u32 hardFallAction) { } s32 check_horizontal_wind(struct MarioState *m) { + if (!m) { return 0; } struct Surface *floor; f32 speed; s16 pushAngle; floor = m->floor; - if (floor->type == SURFACE_HORIZONTAL_WIND) { + if (floor && floor->type == SURFACE_HORIZONTAL_WIND) { pushAngle = floor->force << 8; m->slideVelX += 1.2f * sins(pushAngle); @@ -193,6 +202,7 @@ s32 check_horizontal_wind(struct MarioState *m) { } void update_air_with_turn(struct MarioState *m) { + if (!m) { return; } f32 dragThreshold; s16 intendedDYaw; f32 intendedMag; @@ -223,6 +233,7 @@ void update_air_with_turn(struct MarioState *m) { } void update_air_without_turn(struct MarioState *m) { + if (!m) { return; } f32 sidewaysSpeed = 0.0f; f32 dragThreshold; s16 intendedDYaw; @@ -260,6 +271,7 @@ void update_air_without_turn(struct MarioState *m) { } void update_lava_boost_or_twirling(struct MarioState *m) { + if (!m) { return; } s16 intendedDYaw; f32 intendedMag; @@ -285,6 +297,7 @@ void update_lava_boost_or_twirling(struct MarioState *m) { } void update_flying_yaw(struct MarioState *m) { + if (!m) { return; } s16 targetYawVel = -(s16)(m->controller->stickX * (m->forwardVel / 4.0f)); if (targetYawVel > 0) { @@ -314,6 +327,7 @@ void update_flying_yaw(struct MarioState *m) { } void update_flying_pitch(struct MarioState *m) { + if (!m) { return; } s16 targetPitchVel = -(s16)(m->controller->stickY * (m->forwardVel / 5.0f)); if (targetPitchVel > 0) { @@ -340,6 +354,7 @@ void update_flying_pitch(struct MarioState *m) { } void update_flying(struct MarioState *m) { + if (!m) { return; } UNUSED u32 unused; update_flying_pitch(m); @@ -378,6 +393,7 @@ void update_flying(struct MarioState *m) { } u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation, u32 stepArg) { + if (!m) { return 0; } u32 stepResult; update_air_without_turn(m); @@ -455,6 +471,7 @@ u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation, } s32 act_jump(struct MarioState *m) { + if (!m) { return 0; } if (check_kick_or_dive_in_air(m)) { return TRUE; } @@ -470,6 +487,7 @@ s32 act_jump(struct MarioState *m) { } s32 act_double_jump(struct MarioState *m) { + if (!m) { return 0; } s32 animation = (m->vel[1] >= 0.0f) ? MARIO_ANIM_DOUBLE_JUMP_RISE : MARIO_ANIM_DOUBLE_JUMP_FALL; @@ -489,6 +507,7 @@ s32 act_double_jump(struct MarioState *m) { } s32 act_triple_jump(struct MarioState *m) { + if (!m) { return 0; } if (m == &gMarioStates[0] && m->specialTripleJump) { return set_mario_action(m, ACT_SPECIAL_TRIPLE_JUMP, 0); } @@ -516,6 +535,7 @@ s32 act_triple_jump(struct MarioState *m) { } s32 act_backflip(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_Z_PRESSED) { return set_mario_action(m, ACT_GROUND_POUND, 0); } @@ -531,6 +551,7 @@ s32 act_backflip(struct MarioState *m) { } s32 act_freefall(struct MarioState *m) { + if (!m) { return 0; } s32 animation = 0; if (m->input & INPUT_B_PRESSED) { @@ -558,6 +579,7 @@ s32 act_freefall(struct MarioState *m) { } s32 act_hold_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_FREEFALL, 0); } @@ -577,6 +599,7 @@ s32 act_hold_jump(struct MarioState *m) { } s32 act_hold_freefall(struct MarioState *m) { + if (!m) { return 0; } s32 animation; if (m->actionArg == 0) { animation = MARIO_ANIM_FALL_WITH_LIGHT_OBJ; @@ -601,6 +624,7 @@ s32 act_hold_freefall(struct MarioState *m) { } s32 act_side_flip(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_B_PRESSED) { return set_mario_action(m, ACT_DIVE, 0); } @@ -624,6 +648,7 @@ s32 act_side_flip(struct MarioState *m) { } s32 act_wall_kick_air(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_B_PRESSED) { return set_mario_action(m, ACT_DIVE, 0); } @@ -638,6 +663,7 @@ s32 act_wall_kick_air(struct MarioState *m) { } s32 act_long_jump(struct MarioState *m) { + if (!m) { return 0; } s32 animation; if (!m->marioObj->oMarioLongJumpIsSlow) { animation = MARIO_ANIM_FAST_LONGJUMP; @@ -661,6 +687,7 @@ s32 act_long_jump(struct MarioState *m) { } s32 act_riding_shell_air(struct MarioState *m) { + if (!m) { return 0; } play_mario_sound(m, SOUND_ACTION_TERRAIN_JUMP, 0); set_mario_animation(m, MARIO_ANIM_JUMP_RIDING_SHELL); @@ -685,6 +712,7 @@ s32 act_riding_shell_air(struct MarioState *m) { } s32 act_twirling(struct MarioState *m) { + if (!m) { return 0; } s16 startTwirlYaw = m->twirlYaw; s16 yawVelTarget; @@ -730,6 +758,7 @@ s32 act_twirling(struct MarioState *m) { } s32 act_dive(struct MarioState *m) { + if (!m) { return 0; } if (m->actionArg == 0) { play_mario_sound(m, SOUND_ACTION_THROW, CHAR_SOUND_HOOHOO); } else { @@ -801,6 +830,7 @@ s32 act_dive(struct MarioState *m) { } s32 act_air_throw(struct MarioState *m) { + if (!m) { return 0; } if (++(m->actionTimer) == 4) { mario_throw_held_object(m); } @@ -829,6 +859,7 @@ s32 act_air_throw(struct MarioState *m) { } s32 act_water_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->forwardVel < 15.0f) { mario_set_forward_vel(m, 15.0f); } @@ -863,6 +894,7 @@ s32 act_water_jump(struct MarioState *m) { } s32 act_hold_water_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_FREEFALL, 0); } @@ -893,6 +925,7 @@ s32 act_hold_water_jump(struct MarioState *m) { } s32 act_steep_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_B_PRESSED) { return set_mario_action(m, ACT_DIVE, 0); } @@ -923,6 +956,7 @@ s32 act_steep_jump(struct MarioState *m) { } s32 act_ground_pound(struct MarioState *m) { + if (!m) { return 0; } u32 stepResult; f32 yOffset; @@ -989,6 +1023,7 @@ s32 act_ground_pound(struct MarioState *m) { } s32 act_burning_jump(struct MarioState *m) { + if (!m) { return 0; } play_mario_sound(m, SOUND_ACTION_TERRAIN_JUMP, m->actionArg == 0 ? 0 : -1); mario_set_forward_vel(m, m->forwardVel); @@ -1018,6 +1053,7 @@ s32 act_burning_jump(struct MarioState *m) { } s32 act_burning_fall(struct MarioState *m) { + if (!m) { return 0; } mario_set_forward_vel(m, m->forwardVel); if (perform_air_step(m, 0) == AIR_STEP_LANDED) { @@ -1044,6 +1080,7 @@ s32 act_burning_fall(struct MarioState *m) { } s32 act_crazy_box_bounce(struct MarioState *m) { + if (!m) { return 0; } f32 minSpeed = 32; if (m->actionTimer == 0) { @@ -1109,6 +1146,7 @@ s32 act_crazy_box_bounce(struct MarioState *m) { u32 common_air_knockback_step(struct MarioState *m, u32 landAction, u32 hardFallAction, s32 animation, f32 speed) { + if (!m) { return 0; } u32 stepResult; if (m->knockbackTimer == 0) { @@ -1162,6 +1200,7 @@ u32 common_air_knockback_step(struct MarioState *m, u32 landAction, u32 hardFall } s32 check_wall_kick(struct MarioState *m) { + if (!m) { return 0; } if ((m->input & INPUT_A_PRESSED) && m->wallKickTimer != 0 && m->prevAction == ACT_AIR_HIT_WALL) { m->faceAngle[1] += 0x8000; return set_mario_action(m, ACT_WALL_KICK_AIR, 0); @@ -1220,6 +1259,7 @@ s32 act_hard_forward_air_kb(struct MarioState *m) { } s32 act_thrown_backward(struct MarioState *m) { + if (!m) { return 0; } u32 landAction; if (m->actionArg != 0) { landAction = ACT_HARD_BACKWARD_GROUND_KB; @@ -1236,6 +1276,7 @@ s32 act_thrown_backward(struct MarioState *m) { } s32 act_thrown_forward(struct MarioState *m) { + if (!m) { return 0; } s16 pitch; u32 landAction; @@ -1277,6 +1318,7 @@ s32 act_soft_bonk(struct MarioState *m) { } s32 act_getting_blown(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { if (m->forwardVel > -60.0f) { m->forwardVel -= 6.0f; @@ -1324,6 +1366,7 @@ s32 act_getting_blown(struct MarioState *m) { } s32 act_air_hit_wall(struct MarioState *m) { + if (!m) { return 0; } if (m->heldObj != NULL) { mario_drop_held_object(m); } @@ -1368,6 +1411,7 @@ s32 act_air_hit_wall(struct MarioState *m) { } s32 act_forward_rollout(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { m->vel[1] = 30.0f; m->actionState = 1; @@ -1409,6 +1453,7 @@ s32 act_forward_rollout(struct MarioState *m) { } s32 act_backward_rollout(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { m->vel[1] = 30.0f; m->actionState = 1; @@ -1450,6 +1495,7 @@ s32 act_backward_rollout(struct MarioState *m) { } s32 act_butt_slide_air(struct MarioState *m) { + if (!m) { return 0; } if (++(m->actionTimer) > 30 && m->pos[1] - m->floorHeight > 500.0f) { return set_mario_action(m, ACT_FREEFALL, 1); } @@ -1485,6 +1531,7 @@ s32 act_butt_slide_air(struct MarioState *m) { } s32 act_hold_butt_slide_air(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_HOLD_FREEFALL, 1); } @@ -1526,6 +1573,7 @@ s32 act_hold_butt_slide_air(struct MarioState *m) { } s32 act_lava_boost(struct MarioState *m) { + if (!m) { return 0; } if (!(m->flags & MARIO_MARIO_SOUND_PLAYED)) { play_character_sound_if_no_flag(m, CHAR_SOUND_ON_FIRE, MARIO_MARIO_SOUND_PLAYED); queue_rumble_data_mario(m, 5, 80); @@ -1606,6 +1654,7 @@ s32 act_lava_boost(struct MarioState *m) { } s32 act_slide_kick(struct MarioState *m) { + if (!m) { return 0; } if (m->actionTimer == 0) { play_mario_sound(m, SOUND_ACTION_TERRAIN_JUMP, CHAR_SOUND_HOOHOO); set_mario_animation(m, MARIO_ANIM_SLIDE_KICK); @@ -1657,6 +1706,7 @@ s32 act_slide_kick(struct MarioState *m) { } s32 act_jump_kick(struct MarioState *m) { + if (!m) { return 0; } s32 animFrame; if (m->actionState == 0) { @@ -1692,6 +1742,7 @@ s32 act_jump_kick(struct MarioState *m) { } s32 act_shot_from_cannon(struct MarioState *m) { + if (!m) { return 0; } // only allow for local player u8 allowCameraChange = (m->playerIndex == 0); @@ -1776,6 +1827,7 @@ s32 act_shot_from_cannon(struct MarioState *m) { } s32 act_flying(struct MarioState *m) { + if (!m) { return 0; } s16 startPitch = m->faceAngle[0]; if (m->input & INPUT_Z_PRESSED) { @@ -1961,6 +2013,7 @@ s32 act_flying(struct MarioState *m) { } s32 act_riding_hoot(struct MarioState *m) { + if (!m) { return 0; } if (m->usedObj == NULL || m->usedObj->behavior != smlua_override_behavior(bhvHoot)) { m->usedObj = cur_obj_nearest_object_with_behavior(bhvHoot); if (m->usedObj == NULL) { return FALSE; } @@ -1999,6 +2052,7 @@ s32 act_riding_hoot(struct MarioState *m) { } s32 act_flying_triple_jump(struct MarioState *m) { + if (!m) { return 0; } #ifndef VERSION_JP if (m->input & (INPUT_B_PRESSED | INPUT_Z_PRESSED)) { if (m->playerIndex == 0 && m->area->camera->mode == CAMERA_MODE_BEHIND_MARIO) { @@ -2105,6 +2159,7 @@ s32 act_top_of_pole_jump(struct MarioState *m) { } s32 act_vertical_wind(struct MarioState *m) { + if (!m) { return 0; } s16 intendedDYaw = m->intendedYaw - m->faceAngle[1]; f32 intendedMag = m->intendedMag / 32.0f; @@ -2141,6 +2196,7 @@ s32 act_vertical_wind(struct MarioState *m) { } s32 act_special_triple_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_B_PRESSED) { return set_mario_action(m, ACT_DIVE, 0); } @@ -2181,6 +2237,7 @@ s32 act_special_triple_jump(struct MarioState *m) { } s32 check_common_airborne_cancels(struct MarioState *m) { + if (!m) { return 0; } if (m->pos[1] < m->waterLevel - 100) { return set_water_plunge_action(m); } @@ -2189,7 +2246,7 @@ s32 check_common_airborne_cancels(struct MarioState *m) { return drop_and_set_mario_action(m, ACT_SQUISHED, 0); } - if (m->floor->type == SURFACE_VERTICAL_WIND && (m->action & ACT_FLAG_ALLOW_VERTICAL_WIND_ACTION)) { + if (m->floor && m->floor->type == SURFACE_VERTICAL_WIND && (m->action & ACT_FLAG_ALLOW_VERTICAL_WIND_ACTION)) { return drop_and_set_mario_action(m, ACT_VERTICAL_WIND, 0); } diff --git a/src/game/mario_actions_automatic.c b/src/game/mario_actions_automatic.c index 62ce2d32..8f884b91 100644 --- a/src/game/mario_actions_automatic.c +++ b/src/game/mario_actions_automatic.c @@ -35,6 +35,7 @@ #define HANG_LEFT_CEIL 2 void add_tree_leaf_particles(struct MarioState *m) { + if (!m) { return; } f32 leafHeight; if (m->usedObj != NULL && m->usedObj->behavior == segmented_to_virtual(smlua_override_behavior(bhvTree))) { @@ -51,6 +52,7 @@ void add_tree_leaf_particles(struct MarioState *m) { } void play_climbing_sounds(struct MarioState *m, s32 b) { + if (!m) { return; } s32 isOnTree = (m->usedObj != NULL && m->usedObj->behavior == segmented_to_virtual(smlua_override_behavior(bhvTree))); if (b == 1) { @@ -65,6 +67,7 @@ void play_climbing_sounds(struct MarioState *m, s32 b) { } s32 set_pole_position(struct MarioState *m, f32 offsetY) { + if (!m) { return 0; } if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } // This is here so if somehow a pole despawns while you are on it. @@ -132,6 +135,7 @@ s32 set_pole_position(struct MarioState *m, f32 offsetY) { } s32 act_holding_pole(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } if (m->usedObj == NULL) { return FALSE; } @@ -207,6 +211,7 @@ s32 act_holding_pole(struct MarioState *m) { } s32 act_climbing_pole(struct MarioState *m) { + if (!m) { return 0; } if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } s32 sp24; struct Object *marioObj = m->marioObj; @@ -245,6 +250,7 @@ s32 act_climbing_pole(struct MarioState *m) { } s32 act_grab_pole_slow(struct MarioState *m) { + if (!m) { return 0; } if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } play_character_sound_if_no_flag(m, CHAR_SOUND_WHOA, MARIO_MARIO_SOUND_PLAYED); @@ -260,6 +266,7 @@ s32 act_grab_pole_slow(struct MarioState *m) { } s32 act_grab_pole_fast(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } @@ -284,6 +291,7 @@ s32 act_grab_pole_fast(struct MarioState *m) { } s32 act_top_of_pole_transition(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } @@ -305,6 +313,7 @@ s32 act_top_of_pole_transition(struct MarioState *m) { } s32 act_top_of_pole(struct MarioState *m) { + if (!m) { return 0; } UNUSED struct Object *marioObj = m->marioObj; if (m->usedObj == NULL) { m->usedObj = cur_obj_find_nearest_pole(); } @@ -380,8 +389,9 @@ s32 perform_hanging_step(struct MarioState *m, Vec3f nextPos) { } s32 update_hang_moving(struct MarioState *m) { + if (!m) { return 0; } s32 stepResult; - Vec3f nextPos; + Vec3f nextPos = { 0 }; f32 maxSpeed = 4.0f; m->forwardVel += 1.0f; @@ -400,9 +410,11 @@ s32 update_hang_moving(struct MarioState *m) { m->vel[1] = 0.0f; m->vel[2] = m->slideVelZ; - nextPos[0] = m->pos[0] - m->ceil->normal.y * m->vel[0]; - nextPos[2] = m->pos[2] - m->ceil->normal.y * m->vel[2]; - nextPos[1] = m->pos[1]; + if (m->ceil) { + nextPos[0] = m->pos[0] - m->ceil->normal.y * m->vel[0]; + nextPos[2] = m->pos[2] - m->ceil->normal.y * m->vel[2]; + nextPos[1] = m->pos[1]; + } stepResult = perform_hanging_step(m, nextPos); @@ -412,6 +424,7 @@ s32 update_hang_moving(struct MarioState *m) { } void update_hang_stationary(struct MarioState *m) { + if (!m) { return; } m->forwardVel = 0.0f; m->slideVelX = 0.0f; m->slideVelZ = 0.0f; @@ -422,6 +435,7 @@ void update_hang_stationary(struct MarioState *m) { } s32 act_start_hanging(struct MarioState *m) { + if (!m) { return 0; } if (m->actionTimer++ == 0) { queue_rumble_data_mario(m, 5, 80); } @@ -454,6 +468,7 @@ s32 act_start_hanging(struct MarioState *m) { } s32 act_hanging(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_NONZERO_ANALOG) { return set_mario_action(m, ACT_HANG_MOVING, m->actionArg); } @@ -482,6 +497,7 @@ s32 act_hanging(struct MarioState *m) { } s32 act_hang_moving(struct MarioState *m) { + if (!m) { return 0; } if (!(m->input & INPUT_A_DOWN)) { return set_mario_action(m, ACT_FREEFALL, 0); } @@ -520,6 +536,7 @@ s32 act_hang_moving(struct MarioState *m) { } s32 let_go_of_ledge(struct MarioState *m) { + if (!m) { return 0; } f32 floorHeight; struct Surface *floor; @@ -539,6 +556,7 @@ s32 let_go_of_ledge(struct MarioState *m) { } void climb_up_ledge(struct MarioState *m) { + if (!m) { return; } set_mario_animation(m, MARIO_ANIM_IDLE_HEAD_LEFT); m->pos[0] += 14.0f * sins(m->faceAngle[1]); m->pos[2] += 14.0f * coss(m->faceAngle[1]); @@ -546,6 +564,7 @@ void climb_up_ledge(struct MarioState *m) { } void update_ledge_climb_camera(struct MarioState *m) { + if (!m) { return; } f32 sp4; if (m->actionTimer < 14) { @@ -573,6 +592,7 @@ void update_ledge_climb(struct MarioState *m, s32 animation, u32 endAction) { } s32 act_ledge_grab(struct MarioState *m) { + if (!m) { return 0; } f32 heightAboveFloor; s16 intendedDYaw = m->intendedYaw - m->faceAngle[1]; s32 hasSpaceForMario = (m->ceilHeight - m->floorHeight >= 160.0f); @@ -631,6 +651,7 @@ s32 act_ledge_grab(struct MarioState *m) { } s32 act_ledge_climb_slow(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_OFF_FLOOR) { return let_go_of_ledge(m); } @@ -657,6 +678,7 @@ s32 act_ledge_climb_slow(struct MarioState *m) { } s32 act_ledge_climb_down(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_OFF_FLOOR) { return let_go_of_ledge(m); } @@ -670,6 +692,7 @@ s32 act_ledge_climb_down(struct MarioState *m) { } s32 act_ledge_climb_fast(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_OFF_FLOOR) { return let_go_of_ledge(m); } @@ -687,6 +710,7 @@ s32 act_ledge_climb_fast(struct MarioState *m) { } s32 act_grabbed(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_UNK2) { s32 thrown = (m->marioObj->oInteractStatus & INT_STATUS_MARIO_UNK6) == 0; @@ -728,6 +752,7 @@ s32 act_grabbed(struct MarioState *m) { } s32 act_in_cannon(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; s16 startFacePitch = m->faceAngle[0]; s16 startFaceYaw = m->faceAngle[1]; @@ -822,6 +847,7 @@ s32 act_in_cannon(struct MarioState *m) { } s32 act_tornado_twirling(struct MarioState *m) { + if (!m) { return 0; } if (m->usedObj == NULL) { return FALSE; } struct Surface *floor; @@ -904,6 +930,7 @@ s32 act_tornado_twirling(struct MarioState *m) { static void bubbled_offset_visual(struct MarioState* m) { + if (!m) { return; } // scary 3d trig ahead f32 forwardOffset = 25; @@ -941,6 +968,7 @@ static void bubbled_offset_visual(struct MarioState* m) { } s32 act_bubbled(struct MarioState* m) { + if (!m) { return 0; } if (m->playerIndex == 0 && m->area->camera->mode == CAMERA_MODE_WATER_SURFACE) { set_camera_mode(m->area->camera, CAMERA_MODE_FREE_ROAM, 1); } @@ -1068,6 +1096,7 @@ s32 act_bubbled(struct MarioState* m) { } s32 check_common_automatic_cancels(struct MarioState *m) { + if (!m) { return 0; } if (m->pos[1] < m->waterLevel - 100) { return set_water_plunge_action(m); } @@ -1076,6 +1105,7 @@ s32 check_common_automatic_cancels(struct MarioState *m) { } s32 mario_execute_automatic_action(struct MarioState *m) { + if (!m) { return 0; } if (!m) { return FALSE; } s32 cancel; diff --git a/src/game/mario_actions_cutscene.c b/src/game/mario_actions_cutscene.c index 587cc4d9..8e001ebd 100644 --- a/src/game/mario_actions_cutscene.c +++ b/src/game/mario_actions_cutscene.c @@ -195,6 +195,7 @@ void bhv_end_peach_loop(void) { } void bhv_end_toad_loop(void) { + if (!gCurrentObject) { return; } s32 toadAnimIndex = (gCurrentObject->oPosX >= 0.0f); cur_obj_init_animation_with_sound(sEndToadAnims[toadAnimIndex]); @@ -435,7 +436,7 @@ s32 set_mario_npc_dialog(struct MarioState* m, s32 actionArg, u8 (*inContinueDia // 9 - 22: looking away from npc // 23: end s32 act_reading_npc_dialog(struct MarioState *m) { - if (!m) { return 23; } + if (!m || !gCurrentObject) { return 23; } s32 headTurnAmount = 0; s16 angleToNPC; @@ -759,6 +760,7 @@ void general_star_dance_handler(struct MarioState *m, s32 isInWater) { } s32 act_star_dance(struct MarioState *m) { + if (!m) { return 0; } if (m == &gMarioStates[0]) { m->faceAngle[1] = m->area->camera->yaw; } @@ -772,6 +774,7 @@ s32 act_star_dance(struct MarioState *m) { } s32 act_star_dance_water(struct MarioState *m) { + if (!m) { return 0; } if (m == &gMarioStates[0]) { m->faceAngle[1] = m->area->camera->yaw; } @@ -786,6 +789,7 @@ s32 act_star_dance_water(struct MarioState *m) { } s32 act_fall_after_star_grab(struct MarioState *m) { + if (!m) { return 0; } if (m->pos[1] < m->waterLevel - 130) { play_sound(SOUND_ACTION_UNKNOWN430, m->marioObj->header.gfx.cameraToObject); set_mario_particle_flags(m, PARTICLE_WATER_SPLASH, FALSE); @@ -800,6 +804,7 @@ s32 act_fall_after_star_grab(struct MarioState *m) { } s32 common_death_handler(struct MarioState *m, s32 animation, s32 frameToDeathWarp) { + if (!m) { return 0; } s32 animFrame = set_mario_animation(m, animation); if (animFrame == frameToDeathWarp) { if (m->playerIndex != 0) { @@ -822,6 +827,7 @@ s32 common_death_handler(struct MarioState *m, s32 animation, s32 frameToDeathWa } s32 act_standing_death(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_IN_POISON_GAS) { return set_mario_action(m, ACT_SUFFOCATION, 0); } @@ -863,6 +869,7 @@ s32 act_death_on_stomach(struct MarioState *m) { } s32 act_quicksand_death(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { set_mario_animation(m, MARIO_ANIM_DYING_IN_QUICKSAND); set_anim_to_frame(m, 60); @@ -895,6 +902,7 @@ s32 act_quicksand_death(struct MarioState *m) { } s32 act_eaten_by_bubba(struct MarioState *m) { + if (!m) { return 0; } play_character_sound_if_no_flag(m, CHAR_SOUND_DYING, MARIO_ACTION_SOUND_PLAYED); set_mario_animation(m, MARIO_ANIM_A_POSE); @@ -932,6 +940,7 @@ s32 launch_mario_until_land(struct MarioState *m, s32 endAction, s32 animation, } s32 act_unlocking_key_door(struct MarioState *m) { + if (!m) { return 0; } if (m->usedObj != NULL) { m->faceAngle[1] = m->usedObj->oMoveAngleYaw; @@ -943,7 +952,7 @@ s32 act_unlocking_key_door(struct MarioState *m) { m->faceAngle[1] += 0x8000; } - if ((m->actionTimer == 0) || (m->playerIndex != 0 && gCurrentObject->header.gfx.animInfo.animID == -1)) { + if ((m->actionTimer == 0) || (m->playerIndex != 0 && gCurrentObject && gCurrentObject->header.gfx.animInfo.animID == -1)) { spawn_obj_at_mario_rel_yaw(m, MODEL_BOWSER_KEY_CUTSCENE, bhvBowserKeyUnlockDoor, 0); set_mario_animation(m, MARIO_ANIM_UNLOCK_DOOR); } @@ -976,6 +985,7 @@ s32 act_unlocking_key_door(struct MarioState *m) { } s32 act_unlocking_star_door(struct MarioState *m) { + if (!m) { return 0; } static u8 allowRemoteStarSpawn = TRUE; switch (m->actionState) { case 0: @@ -1025,6 +1035,7 @@ s32 act_unlocking_star_door(struct MarioState *m) { } s32 act_entering_star_door(struct MarioState *m) { + if (!m) { return 0; } f32 targetDX = 0; f32 targetDZ = 0; s16 targetAngle = 0; @@ -1087,6 +1098,7 @@ s32 act_entering_star_door(struct MarioState *m) { } s32 act_going_through_door(struct MarioState *m) { + if (!m) { return 0; } if (m->actionTimer == 0) { if (m->actionArg & 1) { if (m->interactObj != NULL) { @@ -1125,6 +1137,7 @@ s32 act_going_through_door(struct MarioState *m) { } s32 act_warp_door_spawn(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { m->actionState = 1; if (m->usedObj != NULL) { @@ -1149,6 +1162,7 @@ s32 act_warp_door_spawn(struct MarioState *m) { } static s32 launch_mario_until_land_no_collision(struct MarioState *m, s32 endAction, s32 animation, f32 forwardVel) { + if (!m) { return 0; } mario_set_forward_vel(m, forwardVel); set_mario_animation(m, animation); m->pos[0] += m->vel[0]; @@ -1170,6 +1184,7 @@ static s32 launch_mario_until_land_no_collision(struct MarioState *m, s32 endAct } s32 act_emerge_from_pipe(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->actionTimer++ < 11) { @@ -1207,6 +1222,7 @@ s32 act_emerge_from_pipe(struct MarioState *m) { } s32 act_spawn_spin_airborne(struct MarioState *m) { + if (!m) { return 0; } // entered water, exit action if (m->pos[1] < m->waterLevel - 100) { if (m == &gMarioStates[0]) { @@ -1260,6 +1276,7 @@ s32 act_spawn_spin_landing(struct MarioState *m) { * particle flag that generates sparkles. */ s32 act_exit_airborne(struct MarioState *m) { + if (!m) { return 0; } if (15 < m->actionTimer++ && launch_mario_until_land(m, ACT_EXIT_LAND_SAVE_DIALOG, MARIO_ANIM_GENERAL_FALL, -32.0f)) { // heal Mario @@ -1272,6 +1289,7 @@ s32 act_exit_airborne(struct MarioState *m) { } s32 act_falling_exit_airborne(struct MarioState *m) { + if (!m) { return 0; } if (launch_mario_until_land(m, ACT_EXIT_LAND_SAVE_DIALOG, MARIO_ANIM_GENERAL_FALL, 0.0f)) { // heal Mario m->healCounter = 31; @@ -1283,6 +1301,7 @@ s32 act_falling_exit_airborne(struct MarioState *m) { } s32 act_exit_land_save_dialog(struct MarioState *m) { + if (!m) { return 0; } s32 animFrame; stationary_ground_step(m); play_mario_landing_sound_once(m, SOUND_ACTION_TERRAIN_LANDING); @@ -1368,6 +1387,7 @@ s32 act_exit_land_save_dialog(struct MarioState *m) { } s32 act_death_exit(struct MarioState *m) { + if (!m) { return 0; } if (15 < m->actionTimer++ && launch_mario_until_land(m, ACT_DEATH_EXIT_LAND, MARIO_ANIM_GENERAL_FALL, -32.0f)) { #ifdef VERSION_JP @@ -1385,6 +1405,7 @@ s32 act_death_exit(struct MarioState *m) { } s32 act_unused_death_exit(struct MarioState *m) { + if (!m) { return 0; } if (launch_mario_until_land(m, ACT_FREEFALL_LAND_STOP, MARIO_ANIM_GENERAL_FALL, 0.0f)) { #ifdef VERSION_JP play_character_sound(m, CHAR_SOUND_OOOF); @@ -1400,6 +1421,7 @@ s32 act_unused_death_exit(struct MarioState *m) { } s32 act_falling_death_exit(struct MarioState *m) { + if (!m) { return 0; } if (launch_mario_until_land(m, ACT_DEATH_EXIT_LAND, MARIO_ANIM_GENERAL_FALL, 0.0f)) { #ifdef VERSION_JP play_character_sound(m, CHAR_SOUND_OOOF); @@ -1417,6 +1439,7 @@ s32 act_falling_death_exit(struct MarioState *m) { // waits 11 frames before actually executing, also has reduced fvel s32 act_special_exit_airborne(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; play_character_sound_if_no_flag(m, CHAR_SOUND_YAHOO, MARIO_MARIO_SOUND_PLAYED); @@ -1442,6 +1465,7 @@ s32 act_special_exit_airborne(struct MarioState *m) { } s32 act_special_death_exit(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->actionTimer++ < 11) { @@ -1462,6 +1486,7 @@ s32 act_special_death_exit(struct MarioState *m) { } s32 act_spawn_no_spin_airborne(struct MarioState *m) { + if (!m) { return 0; } launch_mario_until_land(m, ACT_SPAWN_NO_SPIN_LANDING, MARIO_ANIM_GENERAL_FALL, 0.0f); if (m->pos[1] < m->waterLevel - 100) { set_water_plunge_action(m); @@ -1483,6 +1508,7 @@ s32 act_spawn_no_spin_landing(struct MarioState *m) { } s32 act_bbh_enter_spin(struct MarioState *m) { + if (!m) { return 0; } f32 cageDX = 0.0f; f32 cageDZ = 0.0f; f32 forwardVel = 0.0f; @@ -1569,6 +1595,7 @@ s32 act_bbh_enter_spin(struct MarioState *m) { } s32 act_bbh_enter_jump(struct MarioState *m) { + if (!m) { return 0; } play_mario_action_sound(m, m->flags & MARIO_METAL_CAP ? SOUND_ACTION_METAL_JUMP : SOUND_ACTION_TERRAIN_JUMP, 1); play_mario_jump_sound(m); @@ -1600,6 +1627,7 @@ s32 act_bbh_enter_jump(struct MarioState *m) { } s32 act_teleport_fade_out(struct MarioState *m) { + if (!m) { return 0; } play_sound_if_no_flag(m, SOUND_ACTION_TELEPORT, MARIO_ACTION_SOUND_PLAYED); set_mario_animation(m, m->prevAction == ACT_CROUCHING ? MARIO_ANIM_CROUCHING : MARIO_ANIM_FIRST_PERSON); @@ -1629,6 +1657,7 @@ s32 act_teleport_fade_out(struct MarioState *m) { } s32 act_teleport_fade_in(struct MarioState *m) { + if (!m) { return 0; } play_sound_if_no_flag(m, SOUND_ACTION_TELEPORT, MARIO_ACTION_SOUND_PLAYED); set_mario_animation(m, MARIO_ANIM_FIRST_PERSON); @@ -1664,6 +1693,7 @@ s32 act_teleport_fade_in(struct MarioState *m) { } s32 act_shocked(struct MarioState *m) { + if (!m) { return 0; } play_character_sound_if_no_flag(m, CHAR_SOUND_WAAAOOOW, MARIO_MARIO_SOUND_PLAYED); play_sound(SOUND_MOVING_SHOCKED, m->marioObj->header.gfx.cameraToObject); if (m->playerIndex == 0) { set_camera_shake_from_hit(SHAKE_SHOCK); } @@ -1880,12 +1910,14 @@ s32 act_feet_stuck_in_ground(struct MarioState *m) { * for keeping track of what step of the cutscene Mario is in.) */ static void advance_cutscene_step(struct MarioState *m) { + if (!m) { return; } m->actionState = 0; m->actionTimer = 0; m->actionArg++; } static void intro_cutscene_hide_hud_and_mario(struct MarioState *m) { + if (!m) { return; } gHudDisplay.flags = HUD_DISPLAY_NONE; m->statusForCamera->cameraEvent = CAM_EVENT_START_INTRO; m->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE; @@ -1900,6 +1932,7 @@ static void intro_cutscene_hide_hud_and_mario(struct MarioState *m) { #endif static void intro_cutscene_peach_lakitu_scene(struct MarioState *m) { + if (!m) { return; } if ((s16) m->statusForCamera->cameraEvent != CAM_EVENT_START_INTRO) { if (m->actionTimer++ == TIMER_SPAWN_PIPE) { u8 globalIndex = gNetworkPlayers[m->playerIndex].globalIndex; @@ -1921,6 +1954,7 @@ static void intro_cutscene_peach_lakitu_scene(struct MarioState *m) { #endif static void intro_cutscene_raise_pipe(struct MarioState* m) { + if (!m) { return; } u8 globalIndex = gNetworkPlayers[m->playerIndex].globalIndex; if (globalIndex == UNKNOWN_GLOBAL_INDEX) { globalIndex = 0; } @@ -1939,6 +1973,7 @@ static void intro_cutscene_raise_pipe(struct MarioState* m) { } static void intro_cutscene_raise_pipe_main_menu(struct MarioState* m) { + if (!m) { return; } u8 globalIndex = gNetworkPlayers[m->playerIndex].globalIndex; if (globalIndex == UNKNOWN_GLOBAL_INDEX) { globalIndex = 0; } if (sIntroWarpPipeObj[globalIndex] == NULL) { @@ -1958,6 +1993,7 @@ static void intro_cutscene_raise_pipe_main_menu(struct MarioState* m) { #undef TIMER_RAISE_PIPE static void intro_cutscene_jump_out_of_pipe(struct MarioState *m) { + if (!m) { return; } if (m->actionTimer <= 1) { u8 globalIndex = gNetworkPlayers[m->playerIndex].globalIndex; if (globalIndex == UNKNOWN_GLOBAL_INDEX) { globalIndex = 0; } @@ -2010,6 +2046,7 @@ static void intro_cutscene_land_outside_pipe(struct MarioState *m) { } static void intro_cutscene_lower_pipe(struct MarioState *m) { + if (!m) { return; } u8 globalIndex = gNetworkPlayers[m->playerIndex].globalIndex; if (globalIndex == UNKNOWN_GLOBAL_INDEX) { globalIndex = 0; } if (m->actionTimer++ == 0) { @@ -2033,6 +2070,7 @@ static void intro_cutscene_lower_pipe(struct MarioState *m) { } static void intro_cutscene_set_mario_to_idle(struct MarioState *m) { + if (!m || !gCamera) { return; } if (gCamera->cutscene == 0) { if (m->playerIndex == 0) { gCameraMovementFlags &= ~CAM_MOVE_C_UP_MODE; @@ -2055,6 +2093,7 @@ enum { }; static s32 act_intro_cutscene(struct MarioState *m) { + if (!m) { return 0; } switch (m->actionArg) { case INTRO_CUTSCENE_HIDE_HUD_AND_MARIO: intro_cutscene_hide_hud_and_mario(m); @@ -2085,12 +2124,14 @@ static s32 act_intro_cutscene(struct MarioState *m) { } static void jumbo_star_offset(struct MarioState* m) { + if (!m) { return; } m->pos[0] += 300.0f * sins(m->faceAngle[1] + 0x4000 * m->playerIndex); m->pos[2] += 300.0f * coss(m->faceAngle[1] + 0x4000 * m->playerIndex); } // jumbo star cutscene: Mario lands after grabbing the jumbo star static void jumbo_star_cutscene_falling(struct MarioState *m) { + if (!m) { return; } if (m->actionState == 0) { m->input |= INPUT_A_DOWN; m->flags |= (MARIO_WING_CAP | MARIO_CAP_ON_HEAD); @@ -2118,6 +2159,7 @@ static void jumbo_star_cutscene_falling(struct MarioState *m) { // jumbo star cutscene: Mario takes off static s32 jumbo_star_cutscene_taking_off(struct MarioState *m) { + if (!m) { return 0; } struct Object *marioObj = m->marioObj; if (m->actionState == 0) { @@ -2171,6 +2213,7 @@ static s32 jumbo_star_cutscene_taking_off(struct MarioState *m) { // jumbo star cutscene: Mario flying static s32 jumbo_star_cutscene_flying(struct MarioState *m) { + if (!m) { return 0; } Vec3f targetPos; switch (m->actionState) { @@ -2221,6 +2264,7 @@ static s32 jumbo_star_cutscene_flying(struct MarioState *m) { enum { JUMBO_STAR_CUTSCENE_FALLING, JUMBO_STAR_CUTSCENE_TAKING_OFF, JUMBO_STAR_CUTSCENE_FLYING }; static s32 act_jumbo_star_cutscene(struct MarioState *m) { + if (!m) { return 0; } switch (m->actionArg) { case JUMBO_STAR_CUTSCENE_FALLING: jumbo_star_cutscene_falling(m); @@ -2275,6 +2319,7 @@ static f32 end_obj_set_visual_pos(struct Object *o) { // make Mario fall and soften wing cap gravity static void end_peach_cutscene_mario_falling(struct MarioState *m) { + if (!m) { return; } if (m->actionTimer == 1) { m->statusForCamera->cameraEvent = CAM_EVENT_START_ENDING; } @@ -2293,6 +2338,7 @@ static void end_peach_cutscene_mario_falling(struct MarioState *m) { // set Mario on the ground, wait and spawn the jumbo star outside the castle. static void end_peach_cutscene_mario_landing(struct MarioState *m) { + if (!m) { return; } set_mario_animation(m, MARIO_ANIM_GENERAL_LAND); stop_and_set_height_to_floor(m); @@ -2313,6 +2359,7 @@ static void end_peach_cutscene_mario_landing(struct MarioState *m) { // raise hand animation, lower hand animation, do some special effects static void end_peach_cutscene_summon_jumbo_star(struct MarioState *m) { + if (!m) { return; } set_mario_animation(m, m->actionState == 0 ? MARIO_ANIM_CREDITS_RAISE_HAND : MARIO_ANIM_CREDITS_LOWER_HAND); if (m->playerIndex != 0) { return; } @@ -2348,6 +2395,7 @@ static void end_peach_cutscene_summon_jumbo_star(struct MarioState *m) { // free peach from the stained glass window static void end_peach_cutscene_spawn_peach(struct MarioState *m) { + if (!m) { return; } if (m->playerIndex != 0) { return; } if (m->actionTimer == 1) { play_transition(WARP_TRANSITION_FADE_INTO_COLOR, 14, 255, 255, 255); @@ -2407,6 +2455,7 @@ static void end_peach_cutscene_spawn_peach(struct MarioState *m) { // descend peach static void end_peach_cutscene_descend_peach(struct MarioState *m) { + if (!m) { return; } if (m->playerIndex != 0) { return; } generate_yellow_sparkles(0, sEndPeachObj->oPosY, -1300, 150.0f); @@ -2436,6 +2485,7 @@ static void end_peach_cutscene_descend_peach(struct MarioState *m) { // Mario runs to peach static void end_peach_cutscene_run_to_peach(struct MarioState *m) { + if (!m) { return; } struct Surface *surf; if (m->actionTimer == 22) { @@ -2460,6 +2510,7 @@ static void end_peach_cutscene_run_to_peach(struct MarioState *m) { // "Mario!" // "The power of the Stars is restored to the castle..." static void end_peach_cutscene_dialog_1(struct MarioState *m) { + if (!m) { return; } s32 animFrame = set_mario_animation(m, m->actionState == 0 ? MARIO_ANIM_CREDITS_TAKE_OFF_CAP : MARIO_ANIM_CREDITS_LOOK_UP); @@ -2569,6 +2620,7 @@ static void end_peach_cutscene_dialog_1(struct MarioState *m) { // "Thank you Mario!" // "We have to do something special for you..." static void end_peach_cutscene_dialog_2(struct MarioState *m) { + if (!m) { return; } if (m->playerIndex != 0) { return; } sEndPeachAnimation = 9; @@ -2629,6 +2681,7 @@ static u8 sMarioBlinkOverride[20] = { }; static void end_peach_cutscene_kiss_from_peach(struct MarioState *m) { + if (!m) { return; } sEndPeachAnimation = 10; if (m->actionTimer >= 90) { @@ -2672,6 +2725,7 @@ static void end_peach_cutscene_kiss_from_peach(struct MarioState *m) { } static void end_peach_cutscene_star_dance(struct MarioState *m) { + if (!m) { return; } u8 nonMario = (gNetworkPlayers[m->playerIndex].globalIndex != 0); s32 animFrame = set_mario_animation(m, nonMario ? MARIO_ANIM_START_SLEEP_SITTING : MARIO_ANIM_CREDITS_PEACE_SIGN); @@ -2726,6 +2780,7 @@ static void end_peach_cutscene_star_dance(struct MarioState *m) { // "let's bake a delicious cake..." // "...for Mario..." static void end_peach_cutscene_dialog_3(struct MarioState *m) { + if (!m) { return; } u8 nonMario = (gNetworkPlayers[m->playerIndex].globalIndex != 0); set_mario_animation(m, nonMario ? MARIO_ANIM_SLEEP_IDLE : MARIO_ANIM_FIRST_PERSON); if (m->playerIndex != 0) { return; } @@ -2764,6 +2819,7 @@ static void end_peach_cutscene_dialog_3(struct MarioState *m) { // "Mario!" static void end_peach_cutscene_run_to_castle(struct MarioState *m) { + if (!m) { return; } u8 nonMario = (gNetworkPlayers[m->playerIndex].globalIndex != 0); if (nonMario) { set_mario_animation(m, m->actionState == 0 ? MARIO_ANIM_SLEEP_START_LYING @@ -2790,6 +2846,7 @@ static void end_peach_cutscene_run_to_castle(struct MarioState *m) { } static void end_peach_cutscene_fade_out(struct MarioState *m) { + if (!m) { return; } if (m->actionState == 0 && m->playerIndex == 0) { level_trigger_warp(m, WARP_OP_CREDITS_NEXT); gPaintingMarioYEntry = 1500.0f; // ensure medium water level in WDW credits cutscene @@ -2814,6 +2871,7 @@ enum { }; static s32 act_end_peach_cutscene(struct MarioState *m) { + if (!m) { return 0; } switch (m->actionArg) { case END_PEACH_CUTSCENE_MARIO_FALLING: end_peach_cutscene_mario_falling(m); @@ -2887,6 +2945,7 @@ static s32 act_end_peach_cutscene(struct MarioState *m) { #endif static s32 act_credits_cutscene(struct MarioState *m) { + if (!m) { return 0; } m->statusForCamera->cameraEvent = CAM_EVENT_START_CREDITS; // checks if Mario is underwater (JRB, DDD, SA, etc.) if (m->pos[1] < m->waterLevel - 100) { @@ -2944,6 +3003,7 @@ static s32 act_credits_cutscene(struct MarioState *m) { } static s32 act_end_waving_cutscene(struct MarioState *m) { + if (!m) { return 0; } if (m->actionState == 0) { m->statusForCamera->cameraEvent = CAM_EVENT_START_END_WAVING; @@ -2982,6 +3042,7 @@ static s32 act_end_waving_cutscene(struct MarioState *m) { } static s32 check_for_instant_quicksand(struct MarioState *m) { + if (!m) { return 0; } if (m != &gMarioStates[0]) { // never kill remote marios return FALSE; diff --git a/src/game/mario_actions_object.c b/src/game/mario_actions_object.c index 15894291..e36bb279 100644 --- a/src/game/mario_actions_object.c +++ b/src/game/mario_actions_object.c @@ -31,6 +31,7 @@ void animated_stationary_ground_step(struct MarioState *m, s32 animation, u32 en } s32 mario_update_punch_sequence(struct MarioState *m) { + if (!m) { return 0; } u32 endAction, crouchEndAction; s32 animFrame; @@ -151,6 +152,7 @@ s32 mario_update_punch_sequence(struct MarioState *m) { } s32 act_punching(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -179,6 +181,7 @@ s32 act_punching(struct MarioState *m) { } s32 act_picking_up(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -222,6 +225,7 @@ s32 act_picking_up(struct MarioState *m) { } s32 act_dive_picking_up(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -242,6 +246,7 @@ s32 act_dive_picking_up(struct MarioState *m) { } s32 act_placing_down(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -259,6 +264,7 @@ s32 act_placing_down(struct MarioState *m) { } s32 act_throwing(struct MarioState *m) { + if (!m) { return 0; } if (m->heldObj && (m->heldObj->oInteractionSubtype & INT_SUBTYPE_HOLDABLE_NPC)) { return set_mario_action(m, ACT_PLACING_DOWN, 0); } @@ -283,6 +289,7 @@ s32 act_throwing(struct MarioState *m) { } s32 act_heavy_throw(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -303,6 +310,7 @@ s32 act_heavy_throw(struct MarioState *m) { } s32 act_stomach_slide_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -320,6 +328,7 @@ s32 act_stomach_slide_stop(struct MarioState *m) { } s32 act_picking_up_bowser(struct MarioState *m) { + if (!m) { return 0; } if (m->playerIndex != 0) { m->usedObj = cur_obj_nearest_object_with_behavior(bhvBowser); } @@ -350,6 +359,7 @@ s32 act_picking_up_bowser(struct MarioState *m) { } s32 act_holding_bowser(struct MarioState *m) { + if (!m) { return 0; } if (m->playerIndex != 0) { if (m->marioBodyState->grabPos != GRAB_POS_BOWSER) { m->usedObj = cur_obj_nearest_object_with_behavior(bhvBowser); @@ -448,6 +458,7 @@ s32 act_holding_bowser(struct MarioState *m) { } s32 act_releasing_bowser(struct MarioState *m) { + if (!m) { return 0; } if (++m->actionTimer == 1 && m->playerIndex == 0) { if (m->actionArg == 0) { queue_rumble_data_mario(m, 5, 50); @@ -464,6 +475,7 @@ s32 act_releasing_bowser(struct MarioState *m) { } s32 check_common_object_cancels(struct MarioState *m) { + if (!m) { return 0; } if (m->playerIndex != 0) { return FALSE; } f32 waterSurface = m->waterLevel - 100; diff --git a/src/game/mario_actions_stationary.c b/src/game/mario_actions_stationary.c index a7dc7c1c..9a1722e3 100644 --- a/src/game/mario_actions_stationary.c +++ b/src/game/mario_actions_stationary.c @@ -23,6 +23,7 @@ #include "hardcoded.h" s32 check_common_idle_cancels(struct MarioState *m) { + if (!m) { return 0; } mario_drop_held_object(m); if (m->floor->normal.y < 0.29237169f) { return mario_push_off_steep_floor(m, ACT_FREEFALL, 0); @@ -65,7 +66,8 @@ s32 check_common_idle_cancels(struct MarioState *m) { } s32 check_common_hold_idle_cancels(struct MarioState *m) { - if (m->floor->normal.y < 0.29237169f) { + if (!m) { return 0; } + if (m->floor && m->floor->normal.y < 0.29237169f) { return mario_push_off_steep_floor(m, ACT_HOLD_FREEFALL, 0); } @@ -108,6 +110,7 @@ s32 check_common_hold_idle_cancels(struct MarioState *m) { } s32 act_idle(struct MarioState *m) { + if (!m) { return 0; } if (m->quicksandDepth > 30.0f) { return set_mario_action(m, ACT_IN_QUICKSAND, 0); } @@ -184,12 +187,14 @@ s32 act_idle(struct MarioState *m) { } void play_anim_sound(struct MarioState *m, u32 actionState, s32 animFrame, u32 sound) { + if (!m) { return; } if (m->actionState == actionState && m->marioObj->header.gfx.animInfo.animFrame == animFrame) { play_sound(sound, m->marioObj->header.gfx.cameraToObject); } } s32 act_start_sleeping(struct MarioState *m) { + if (!m) { return 0; } #ifndef VERSION_JP s32 animFrame = 0; #endif @@ -265,6 +270,7 @@ s32 act_start_sleeping(struct MarioState *m) { } s32 act_sleeping(struct MarioState *m) { + if (!m) { return 0; } s32 animFrame; if (m->playerIndex == 0) { if (m->input @@ -342,6 +348,7 @@ s32 act_sleeping(struct MarioState *m) { } s32 act_waking_up(struct MarioState *m) { + if (!m) { return 0; } if (!m->actionTimer) { stop_sound(get_character(m)->soundSnoring1, m->marioObj->header.gfx.cameraToObject); stop_sound(get_character(m)->soundSnoring2, m->marioObj->header.gfx.cameraToObject); @@ -379,6 +386,7 @@ s32 act_waking_up(struct MarioState *m) { } s32 act_shivering(struct MarioState *m) { + if (!m) { return 0; } s32 animFrame; if (m->input & INPUT_UNKNOWN_10) { @@ -433,6 +441,7 @@ s32 act_shivering(struct MarioState *m) { } s32 act_coughing(struct MarioState *m) { + if (!m) { return 0; } s32 animFrame; if (check_common_idle_cancels(m)) { @@ -457,6 +466,7 @@ s32 act_coughing(struct MarioState *m) { } s32 act_hold_idle(struct MarioState *m) { + if (!m) { return 0; } if (m->heldObj != NULL && segmented_to_virtual(&bhvJumpingBox) == m->heldObj->behavior) { return set_mario_action(m, ACT_CRAZY_BOX_BOUNCE, 0); } @@ -479,6 +489,7 @@ s32 act_hold_idle(struct MarioState *m) { } s32 act_hold_heavy_idle(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -505,6 +516,7 @@ s32 act_hold_heavy_idle(struct MarioState *m) { } s32 act_standing_against_wall(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -527,6 +539,7 @@ s32 act_standing_against_wall(struct MarioState *m) { } s32 act_in_quicksand(struct MarioState *m) { + if (!m) { return 0; } if (m->quicksandDepth < 30.0f) { return set_mario_action(m, ACT_IDLE, 0); } @@ -546,6 +559,7 @@ s32 act_in_quicksand(struct MarioState *m) { } s32 act_crouching(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -584,6 +598,7 @@ s32 act_crouching(struct MarioState *m) { } s32 act_panting(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -606,6 +621,7 @@ s32 act_panting(struct MarioState *m) { } s32 act_hold_panting_unused(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_PANTING, 0); } @@ -637,6 +653,7 @@ void stopping_step(struct MarioState *m, s32 animID, u32 action) { } s32 act_braking_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -659,6 +676,7 @@ s32 act_braking_stop(struct MarioState *m) { } s32 act_butt_slide_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -676,6 +694,7 @@ s32 act_butt_slide_stop(struct MarioState *m) { } s32 act_hold_butt_slide_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_IDLE, 0); } @@ -697,6 +716,7 @@ s32 act_hold_butt_slide_stop(struct MarioState *m) { } s32 act_slide_kick_slide_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -710,6 +730,7 @@ s32 act_slide_kick_slide_stop(struct MarioState *m) { } s32 act_start_crouching(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -735,6 +756,7 @@ s32 act_start_crouching(struct MarioState *m) { } s32 act_stop_crouching(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -760,6 +782,7 @@ s32 act_stop_crouching(struct MarioState *m) { } s32 act_start_crawling(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_FIRST_PERSON) { return set_mario_action(m, ACT_STOP_CROUCHING, 0); } @@ -786,6 +809,7 @@ s32 act_start_crawling(struct MarioState *m) { } s32 act_stop_crawling(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -807,6 +831,7 @@ s32 act_stop_crawling(struct MarioState *m) { } s32 act_shockwave_bounce(struct MarioState *m) { + if (!m) { return 0; } s16 sp1E; f32 sp18; @@ -852,6 +877,7 @@ s32 landing_step(struct MarioState *m, s32 arg1, u32 action) { } s32 check_common_landing_cancels(struct MarioState *m, u32 action) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -880,6 +906,7 @@ s32 check_common_landing_cancels(struct MarioState *m, u32 action) { } s32 act_jump_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (check_common_landing_cancels(m, 0)) { return TRUE; } @@ -889,6 +916,7 @@ s32 act_jump_land_stop(struct MarioState *m) { } s32 act_double_jump_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (check_common_landing_cancels(m, 0)) { return TRUE; } @@ -898,6 +926,7 @@ s32 act_double_jump_land_stop(struct MarioState *m) { } s32 act_side_flip_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (check_common_landing_cancels(m, 0)) { return TRUE; } @@ -908,6 +937,7 @@ s32 act_side_flip_land_stop(struct MarioState *m) { } s32 act_freefall_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (check_common_landing_cancels(m, 0)) { return TRUE; } @@ -917,6 +947,7 @@ s32 act_freefall_land_stop(struct MarioState *m) { } s32 act_triple_jump_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (check_common_landing_cancels(m, ACT_JUMP)) { return TRUE; } @@ -926,6 +957,7 @@ s32 act_triple_jump_land_stop(struct MarioState *m) { } s32 act_backflip_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (!(m->input & INPUT_Z_DOWN) || m->marioObj->header.gfx.animInfo.animFrame >= 6) { m->input &= ~INPUT_A_PRESSED; } @@ -939,6 +971,7 @@ s32 act_backflip_land_stop(struct MarioState *m) { } s32 act_lava_boost_land(struct MarioState *m) { + if (!m) { return 0; } m->input &= ~(INPUT_FIRST_PERSON | INPUT_B_PRESSED); if (check_common_landing_cancels(m, 0)) { @@ -950,6 +983,7 @@ s32 act_lava_boost_land(struct MarioState *m) { } s32 act_long_jump_land_stop(struct MarioState *m) { + if (!m) { return 0; } m->input &= ~INPUT_B_PRESSED; if (check_common_landing_cancels(m, ACT_JUMP)) { return TRUE; @@ -962,6 +996,7 @@ s32 act_long_jump_land_stop(struct MarioState *m) { } s32 act_hold_jump_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_IDLE, 0); } @@ -983,6 +1018,7 @@ s32 act_hold_jump_land_stop(struct MarioState *m) { } s32 act_hold_freefall_land_stop(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_IDLE, 0); } @@ -1003,6 +1039,7 @@ s32 act_hold_freefall_land_stop(struct MarioState *m) { } s32 act_air_throw_land(struct MarioState *m) { + if (!m) { return 0; } if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); } @@ -1020,6 +1057,7 @@ s32 act_air_throw_land(struct MarioState *m) { } s32 act_twirl_land(struct MarioState *m) { + if (!m) { return 0; } m->actionState = 1; if (m->input & INPUT_UNKNOWN_10) { return set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); @@ -1050,6 +1088,7 @@ s32 act_twirl_land(struct MarioState *m) { } s32 act_ground_pound_land(struct MarioState *m) { + if (!m) { return 0; } m->actionState = 1; if (m->input & INPUT_UNKNOWN_10) { return drop_and_set_mario_action(m, ACT_SHOCKWAVE_BOUNCE, 0); @@ -1068,6 +1107,7 @@ s32 act_ground_pound_land(struct MarioState *m) { } s32 act_first_person(struct MarioState *m) { + if (!m) { return 0; } s32 sp1C = (m->input & (INPUT_OFF_FLOOR | INPUT_ABOVE_SLIDE | INPUT_UNKNOWN_10)) != 0; if (m->actionState == 0) { @@ -1100,6 +1140,7 @@ s32 act_first_person(struct MarioState *m) { } s32 check_common_stationary_cancels(struct MarioState *m) { + if (!m) { return 0; } if (m->playerIndex != 0) { return FALSE; } if (m->pos[1] < m->waterLevel - 100) { diff --git a/src/game/mario_actions_submerged.c b/src/game/mario_actions_submerged.c index b66801d6..1f926f90 100644 --- a/src/game/mario_actions_submerged.c +++ b/src/game/mario_actions_submerged.c @@ -42,6 +42,7 @@ static s16 D_80339FD2; static f32 D_80339FD4; void set_swimming_at_surface_particles(struct MarioState *m, u32 particleFlag) { + if (!m) { return; } s16 atSurface = m->pos[1] >= m->waterLevel - 130; u16 pIndex = m->playerIndex; @@ -56,6 +57,7 @@ void set_swimming_at_surface_particles(struct MarioState *m, u32 particleFlag) { } static s32 swimming_near_surface(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return FALSE; } @@ -64,6 +66,7 @@ static s32 swimming_near_surface(struct MarioState *m) { } static f32 get_buoyancy(struct MarioState *m) { + if (!m) { return 0; } f32 buoyancy = 0.0f; if (m->flags & MARIO_METAL_CAP) { @@ -82,6 +85,7 @@ static f32 get_buoyancy(struct MarioState *m) { } u32 perform_water_full_step(struct MarioState *m, Vec3f nextPos) { + if (!m) { return 0; } struct WallCollisionData wcd = { 0 }; struct Surface *ceil; struct Surface *floor; @@ -131,6 +135,7 @@ u32 perform_water_full_step(struct MarioState *m, Vec3f nextPos) { } void apply_water_current(struct MarioState *m, Vec3f step) { + if (!m) { return; } s32 i; f32 whirlpoolRadius = 2000.0f; @@ -217,6 +222,7 @@ u32 perform_water_step(struct MarioState *m) { } static BAD_RETURN(u32) update_water_pitch(struct MarioState *m) { + if (!m) { return; } struct Object *marioObj = m->marioObj; if (marioObj->header.gfx.angle[0] > 0) { @@ -234,6 +240,7 @@ static BAD_RETURN(u32) update_water_pitch(struct MarioState *m) { } static void stationary_slow_down(struct MarioState *m) { + if (!m) { return; } f32 buoyancy = get_buoyancy(m); m->angleVel[0] = 0; @@ -250,6 +257,7 @@ static void stationary_slow_down(struct MarioState *m) { } static void update_swimming_speed(struct MarioState *m, f32 decelThreshold) { + if (!m) { return; } f32 buoyancy = get_buoyancy(m); f32 maxSpeed = 28.0f; @@ -275,6 +283,7 @@ static void update_swimming_speed(struct MarioState *m, f32 decelThreshold) { } static void update_swimming_yaw(struct MarioState *m) { + if (!m) { return; } s16 targetYawVel = -(s16)(10.0f * m->controller->stickX); if (targetYawVel > 0) { @@ -304,6 +313,7 @@ static void update_swimming_yaw(struct MarioState *m) { } static void update_swimming_pitch(struct MarioState *m) { + if (!m) { return; } s16 targetPitch = -(s16)(252.0f * m->controller->stickY); s16 pitchVel; @@ -325,6 +335,7 @@ static void update_swimming_pitch(struct MarioState *m) { } static void common_idle_step(struct MarioState *m, s32 animation, s32 arg) { + if (!m) { return; } s16 *val = &m->marioBodyState->headAngle[0]; update_swimming_yaw(m); @@ -349,6 +360,7 @@ static void common_idle_step(struct MarioState *m, s32 animation, s32 arg) { } static s32 act_water_idle(struct MarioState *m) { + if (!m) { return 0; } u32 val = 0x10000; if (m->flags & MARIO_METAL_CAP) { @@ -372,6 +384,7 @@ static s32 act_water_idle(struct MarioState *m) { } static s32 act_hold_water_idle(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_HOLD_METAL_WATER_FALLING, 0); } @@ -393,6 +406,7 @@ static s32 act_hold_water_idle(struct MarioState *m) { } static s32 act_water_action_end(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_METAL_WATER_FALLING, 1); } @@ -413,6 +427,7 @@ static s32 act_water_action_end(struct MarioState *m) { } static s32 act_hold_water_action_end(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_HOLD_METAL_WATER_FALLING, 0); } @@ -439,12 +454,14 @@ static s32 act_hold_water_action_end(struct MarioState *m) { } static void reset_float_globals(struct MarioState *m) { + if (!m) { return; } D_80339FD0 = 0; D_80339FD2 = 0x800; D_80339FD4 = m->faceAngle[0] / 256.0f + 20.0f; } void float_surface_gfx(struct MarioState *m) { + if (!m) { return; } if (D_80339FD2 != 0 && m->pos[1] > m->waterLevel - 85 && m->faceAngle[0] >= 0) { if ((D_80339FD0 += D_80339FD2) >= 0) { m->marioObj->header.gfx.pos[1] += D_80339FD4 * sins(D_80339FD0); @@ -456,6 +473,7 @@ void float_surface_gfx(struct MarioState *m) { } static void common_swimming_step(struct MarioState *m, s16 swimStrength) { + if (!m) { return; } s16 floorPitch; UNUSED struct Object *marioObj = m->marioObj; @@ -502,6 +520,7 @@ static void common_swimming_step(struct MarioState *m, s16 swimStrength) { } static void play_swimming_noise(struct MarioState *m) { + if (!m) { return; } s16 animFrame = m->marioObj->header.gfx.animInfo.animFrame; // This must be one line to match on -O2 @@ -509,6 +528,7 @@ static void play_swimming_noise(struct MarioState *m) { } static s32 check_water_jump(struct MarioState *m) { + if (!m) { return 0; } s32 probe = (s32)(m->pos[1] + 1.5f); if (m->input & INPUT_A_PRESSED) { @@ -529,6 +549,7 @@ static s32 check_water_jump(struct MarioState *m) { } static s32 act_breaststroke(struct MarioState *m) { + if (!m) { return 0; } u16 pIndex = m->playerIndex; if (m->actionArg == 0) { @@ -589,6 +610,7 @@ static s32 act_breaststroke(struct MarioState *m) { } static s32 act_swimming_end(struct MarioState *m) { + if (!m) { return 0; } u16 pIndex = m->playerIndex; if (m->flags & MARIO_METAL_CAP) { @@ -628,6 +650,7 @@ static s32 act_swimming_end(struct MarioState *m) { } static s32 act_flutter_kick(struct MarioState *m) { + if (!m) { return 0; } u16 pIndex = m->playerIndex; if (m->flags & MARIO_METAL_CAP) { @@ -659,6 +682,7 @@ static s32 act_flutter_kick(struct MarioState *m) { } static s32 act_hold_breaststroke(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_HOLD_METAL_WATER_FALLING, 0); } @@ -710,6 +734,7 @@ static s32 act_hold_breaststroke(struct MarioState *m) { } static s32 act_hold_swimming_end(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_HOLD_METAL_WATER_FALLING, 0); } @@ -743,6 +768,7 @@ static s32 act_hold_swimming_end(struct MarioState *m) { } static s32 act_hold_flutter_kick(struct MarioState *m) { + if (!m) { return 0; } if (m->flags & MARIO_METAL_CAP) { return set_mario_action(m, ACT_HOLD_METAL_WATER_FALLING, 0); } @@ -769,6 +795,7 @@ static s32 act_hold_flutter_kick(struct MarioState *m) { } static s32 act_water_shell_swimming(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_WATER_IDLE, 0); } @@ -796,6 +823,7 @@ static s32 act_water_shell_swimming(struct MarioState *m) { } static s32 check_water_grab(struct MarioState *m) { + if (!m) { return 0; } //! Heave hos have the grabbable interaction type but are not normally // grabbable. Since water grabbing doesn't check the appropriate input flag, // you can use water grab to pick up heave ho. @@ -820,6 +848,7 @@ static s32 check_water_grab(struct MarioState *m) { } static s32 act_water_throw(struct MarioState *m) { + if (!m) { return 0; } update_swimming_yaw(m); update_swimming_pitch(m); update_swimming_speed(m, MIN_SWIM_SPEED); @@ -844,6 +873,7 @@ static s32 act_water_throw(struct MarioState *m) { } static s32 act_water_punch(struct MarioState *m) { + if (!m) { return 0; } if (m->forwardVel < 7.0f) { m->forwardVel += 1.0f; } @@ -890,6 +920,7 @@ static s32 act_water_punch(struct MarioState *m) { } static void common_water_knockback_step(struct MarioState *m, s32 animation, u32 endAction, s32 arg3) { + if (!m) { return; } stationary_slow_down(m); perform_water_step(m); set_mario_animation(m, animation); @@ -906,16 +937,19 @@ static void common_water_knockback_step(struct MarioState *m, s32 animation, u32 } static s32 act_backward_water_kb(struct MarioState *m) { + if (!m) { return 0; } common_water_knockback_step(m, MARIO_ANIM_BACKWARDS_WATER_KB, ACT_WATER_IDLE, m->actionArg); return FALSE; } static s32 act_forward_water_kb(struct MarioState *m) { + if (!m) { return 0; } common_water_knockback_step(m, MARIO_ANIM_WATER_FORWARD_KB, ACT_WATER_IDLE, m->actionArg); return FALSE; } static s32 act_water_shocked(struct MarioState *m) { + if (!m) { return 0; } play_character_sound_if_no_flag(m, CHAR_SOUND_WAAAOOOW, MARIO_MARIO_SOUND_PLAYED); play_sound(SOUND_MOVING_SHOCKED, m->marioObj->header.gfx.cameraToObject); if (m->playerIndex == 0) { set_camera_shake_from_hit(SHAKE_SHOCK); } @@ -937,6 +971,7 @@ static s32 act_water_shocked(struct MarioState *m) { } static s32 act_drowning(struct MarioState *m) { + if (!m) { return 0; } switch (m->actionState) { case 0: set_mario_animation(m, MARIO_ANIM_DROWNING_PART1); @@ -976,6 +1011,7 @@ static s32 act_drowning(struct MarioState *m) { } static s32 act_water_death(struct MarioState *m) { + if (!m) { return 0; } stationary_slow_down(m); perform_water_step(m); @@ -1003,6 +1039,7 @@ static s32 act_water_death(struct MarioState *m) { } static s32 act_water_plunge(struct MarioState *m) { + if (!m) { return 0; } u32 stepResult; s32 stateFlags = m->heldObj != NULL; @@ -1088,6 +1125,7 @@ static s32 act_water_plunge(struct MarioState *m) { } static s32 act_caught_in_whirlpool(struct MarioState *m) { + if (!m) { return 0; } f32 sinAngleChange; f32 cosAngleChange; f32 newDistance; @@ -1163,6 +1201,7 @@ static s32 act_caught_in_whirlpool(struct MarioState *m) { } static void play_metal_water_jumping_sound(struct MarioState *m, u32 landing) { + if (!m) { return; } if (!(m->flags & MARIO_ACTION_SOUND_PLAYED)) { set_mario_particle_flags(m, PARTICLE_MIST_CIRCLE, FALSE); } @@ -1179,6 +1218,7 @@ static void play_metal_water_walking_sound(struct MarioState *m) { } static void update_metal_water_walking_speed(struct MarioState *m) { + if (!m) { return; } f32 val = m->intendedMag / 1.5f; if (m->forwardVel <= 0.0f) { @@ -1205,6 +1245,7 @@ static void update_metal_water_walking_speed(struct MarioState *m) { } static s32 update_metal_water_jump_speed(struct MarioState *m) { + if (!m) { return 0; } UNUSED f32 nextY = m->pos[1] + m->vel[1]; f32 waterSurface = m->waterLevel - 100; @@ -1234,6 +1275,7 @@ static s32 update_metal_water_jump_speed(struct MarioState *m) { } static s32 act_metal_water_standing(struct MarioState *m) { + if (!m) { return 0; } if (!(m->flags & MARIO_METAL_CAP)) { return set_mario_action(m, ACT_WATER_IDLE, 0); } @@ -1271,6 +1313,7 @@ static s32 act_metal_water_standing(struct MarioState *m) { } static s32 act_hold_metal_water_standing(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_METAL_WATER_STANDING, 0); } @@ -1293,6 +1336,7 @@ static s32 act_hold_metal_water_standing(struct MarioState *m) { } static s32 act_metal_water_walking(struct MarioState *m) { + if (!m) { return 0; } s32 val04; if (!(m->flags & MARIO_METAL_CAP)) { @@ -1333,6 +1377,7 @@ static s32 act_metal_water_walking(struct MarioState *m) { } static s32 act_hold_metal_water_walking(struct MarioState *m) { + if (!m) { return 0; } s32 val04; if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { @@ -1375,6 +1420,7 @@ static s32 act_hold_metal_water_walking(struct MarioState *m) { } static s32 act_metal_water_jump(struct MarioState *m) { + if (!m) { return 0; } if (!(m->flags & MARIO_METAL_CAP)) { return set_mario_action(m, ACT_WATER_IDLE, 0); } @@ -1400,6 +1446,7 @@ static s32 act_metal_water_jump(struct MarioState *m) { } static s32 act_hold_metal_water_jump(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_METAL_WATER_FALLING, 0); } @@ -1429,6 +1476,7 @@ static s32 act_hold_metal_water_jump(struct MarioState *m) { } static s32 act_metal_water_falling(struct MarioState *m) { + if (!m) { return 0; } if (!(m->flags & MARIO_METAL_CAP)) { return set_mario_action(m, ACT_WATER_IDLE, 0); } @@ -1448,6 +1496,7 @@ static s32 act_metal_water_falling(struct MarioState *m) { } static s32 act_hold_metal_water_falling(struct MarioState *m) { + if (!m) { return 0; } if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { return drop_and_set_mario_action(m, ACT_METAL_WATER_FALLING, 0); } @@ -1471,6 +1520,7 @@ static s32 act_hold_metal_water_falling(struct MarioState *m) { } static s32 act_metal_water_jump_land(struct MarioState *m) { + if (!m) { return 0; } play_metal_water_jumping_sound(m, TRUE); if (!(m->flags & MARIO_METAL_CAP)) { @@ -1492,6 +1542,7 @@ static s32 act_metal_water_jump_land(struct MarioState *m) { } static s32 act_hold_metal_water_jump_land(struct MarioState *m) { + if (!m) { return 0; } play_metal_water_jumping_sound(m, TRUE); if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { @@ -1517,6 +1568,7 @@ static s32 act_hold_metal_water_jump_land(struct MarioState *m) { } static s32 act_metal_water_fall_land(struct MarioState *m) { + if (!m) { return 0; } play_metal_water_jumping_sound(m, TRUE); if (!(m->flags & MARIO_METAL_CAP)) { @@ -1538,6 +1590,7 @@ static s32 act_metal_water_fall_land(struct MarioState *m) { } static s32 act_hold_metal_water_fall_land(struct MarioState *m) { + if (!m) { return 0; } play_metal_water_jumping_sound(m, TRUE); if (m->marioObj->oInteractStatus & INT_STATUS_MARIO_DROP_OBJECT) { @@ -1563,6 +1616,7 @@ static s32 act_hold_metal_water_fall_land(struct MarioState *m) { } static s32 check_common_submerged_cancels(struct MarioState *m) { + if (!m) { return 0; } if (m->pos[1] > m->waterLevel - 80) { if (m->waterLevel - 80 > m->floorHeight) { m->pos[1] = m->waterLevel - 80; diff --git a/src/game/mario_misc.c b/src/game/mario_misc.c index 9cb9f0ff..3e9af1b1 100644 --- a/src/game/mario_misc.c +++ b/src/game/mario_misc.c @@ -107,6 +107,7 @@ Gfx *geo_draw_mario_head_goddard(s32 callContext, struct GraphNode *node, Mat4 * } static void toad_message_faded(void) { + if (!gCurrentObject) { return; } if (gCurrentObject->oDistanceToMario > 700.0f) { gCurrentObject->oToadMessageRecentlyTalked = FALSE; } @@ -116,6 +117,7 @@ static void toad_message_faded(void) { } static void toad_message_opaque(void) { + if (!gCurrentObject) { return; } if (gCurrentObject->oDistanceToMario > 700.0f) { gCurrentObject->oToadMessageState = TOAD_MESSAGE_FADING; } else if (!gCurrentObject->oToadMessageRecentlyTalked) { @@ -129,6 +131,7 @@ static void toad_message_opaque(void) { } static void toad_message_talking(void) { + if (!gCurrentObject) { return; } if (cur_obj_update_dialog_with_cutscene(&gMarioStates[0], 3, 1, CUTSCENE_DIALOG, gCurrentObject->oToadMessageDialogId, NULL) != 0) { gCurrentObject->oToadMessageRecentlyTalked = TRUE; @@ -149,18 +152,21 @@ static void toad_message_talking(void) { } static void toad_message_opacifying(void) { + if (!gCurrentObject) { return; } if ((gCurrentObject->oOpacity += 6) == 255) { gCurrentObject->oToadMessageState = TOAD_MESSAGE_OPAQUE; } } static void toad_message_fading(void) { + if (!gCurrentObject) { return; } if ((gCurrentObject->oOpacity -= 6) == 81) { gCurrentObject->oToadMessageState = TOAD_MESSAGE_FADED; } } void bhv_toad_message_loop(void) { + if (!gCurrentObject) { return; } if (gCurrentObject->header.gfx.node.flags & GRAPH_RENDER_ACTIVE) { gCurrentObject->oInteractionSubtype = 0; switch (gCurrentObject->oToadMessageState) { @@ -184,6 +190,7 @@ void bhv_toad_message_loop(void) { } void bhv_toad_message_init(void) { + if (!gCurrentObject) { return; } s32 saveFlags = save_file_get_flags(); s32 starCount = save_file_get_total_star_count(gCurrSaveFileNum - 1, COURSE_MIN - 1, COURSE_MAX - 1); s32 dialogId = (gCurrentObject->oBehParams >> 24) & 0xFF; @@ -217,6 +224,7 @@ void bhv_toad_message_init(void) { } static void star_door_unlock_spawn_particles(s16 angleOffset) { + if (!gCurrentObject) { return; } struct Object *sparkleParticle = spawn_object(gCurrentObject, 0, bhvSparkleSpawn); if (sparkleParticle == NULL) { return; } @@ -229,6 +237,7 @@ static void star_door_unlock_spawn_particles(s16 angleOffset) { } void bhv_unlock_door_star_init(void) { + if (!gCurrentObject) { return; } gCurrentObject->oUnlockDoorStarState = UNLOCK_DOOR_STAR_RISING; gCurrentObject->oUnlockDoorStarTimer = 0; gCurrentObject->oUnlockDoorStarYawVel = 0x1000; @@ -240,6 +249,7 @@ void bhv_unlock_door_star_init(void) { } void bhv_unlock_door_star_loop(void) { + if (!gCurrentObject) { return; } UNUSED u8 unused1[4]; s16 prevYaw = gCurrentObject->oMoveAngleYaw; UNUSED u8 unused2[4]; diff --git a/src/game/mario_step.c b/src/game/mario_step.c index 443b428e..e00f98f7 100644 --- a/src/game/mario_step.c +++ b/src/game/mario_step.c @@ -91,6 +91,7 @@ BAD_RETURN(s32) init_bully_collision_data(struct BullyCollisionData *data, f32 p } void mario_bonk_reflection(struct MarioState *m, u32 negateSpeed) { + if (!m) { return; } if (m->wall != NULL) { s16 wallAngle = atan2s(m->wallNormal[2], m->wallNormal[0]); m->faceAngle[1] = wallAngle - (s16)(m->faceAngle[1] - wallAngle); @@ -109,6 +110,7 @@ void mario_bonk_reflection(struct MarioState *m, u32 negateSpeed) { } u32 mario_update_quicksand(struct MarioState *m, f32 sinkingSpeed) { + if (!m) { return 0; } bool allow = true; smlua_call_event_hooks_mario_param_and_int_ret_bool(HOOK_ALLOW_HAZARD_SURFACE, m, HAZARD_TYPE_QUICKSAND, &allow); if (m->action & ACT_FLAG_RIDING_SHELL || (gServerSettings.enableCheats && gCheats.godMode && m->playerIndex == 0) || (!allow)) { @@ -162,6 +164,7 @@ u32 mario_update_quicksand(struct MarioState *m, f32 sinkingSpeed) { } u32 mario_push_off_steep_floor(struct MarioState *m, u32 action, u32 actionArg) { + if (!m) { return 0; } s16 floorDYaw = m->floorAngle - m->faceAngle[1]; if (floorDYaw > -0x4000 && floorDYaw < 0x4000) { @@ -176,7 +179,9 @@ u32 mario_push_off_steep_floor(struct MarioState *m, u32 action, u32 actionArg) } u32 mario_update_moving_sand(struct MarioState *m) { + if (!m) { return 0; } struct Surface *floor = m->floor; + if (!floor) { return 0; } s32 floorType = floor->type; if (floorType == SURFACE_DEEP_MOVING_QUICKSAND || floorType == SURFACE_SHALLOW_MOVING_QUICKSAND @@ -194,7 +199,9 @@ u32 mario_update_moving_sand(struct MarioState *m) { } u32 mario_update_windy_ground(struct MarioState *m) { + if (!m) { return 0; } struct Surface *floor = m->floor; + if (!floor) { return 0; } extern bool gDjuiInMainMenu; if (floor->type == SURFACE_HORIZONTAL_WIND && !gDjuiInMainMenu) { @@ -228,6 +235,7 @@ u32 mario_update_windy_ground(struct MarioState *m) { } void stop_and_set_height_to_floor(struct MarioState *m) { + if (!m) { return; } struct Object *marioObj = m->marioObj; mario_set_forward_vel(m, 0.0f); @@ -241,6 +249,7 @@ void stop_and_set_height_to_floor(struct MarioState *m) { } s32 stationary_ground_step(struct MarioState *m) { + if (!m) { return 0; } u32 takeStep; struct Object *marioObj = m->marioObj; u32 stepResult = GROUND_STEP_NONE; @@ -263,6 +272,7 @@ s32 stationary_ground_step(struct MarioState *m) { } static s32 perform_ground_quarter_step(struct MarioState *m, Vec3f nextPos) { + if (!m) { return 0; } struct WallCollisionData lowerWcd = { 0 }; struct WallCollisionData upperWcd = { 0 }; struct Surface *ceil; @@ -379,6 +389,7 @@ s32 perform_ground_step(struct MarioState *m) { } u32 check_ledge_grab(struct MarioState *m, struct Surface *wall, Vec3f intendedPos, Vec3f nextPos) { + if (!m) { return 0; } struct Surface *ledgeFloor; Vec3f ledgePos; f32 displacementX; @@ -419,6 +430,7 @@ u32 check_ledge_grab(struct MarioState *m, struct Surface *wall, Vec3f intendedP } s32 perform_air_quarter_step(struct MarioState *m, Vec3f intendedPos, u32 stepArg) { + if (!m) { return 0; } s16 wallDYaw; Vec3f nextPos; struct WallCollisionData lowerWcd = { 0 }; @@ -572,6 +584,7 @@ s32 perform_air_quarter_step(struct MarioState *m, Vec3f intendedPos, u32 stepAr } void apply_twirl_gravity(struct MarioState *m) { + if (!m) { return; } f32 terminalVelocity; f32 heaviness = 1.0f; @@ -588,6 +601,7 @@ void apply_twirl_gravity(struct MarioState *m) { } u32 should_strengthen_gravity_for_jump_ascent(struct MarioState *m) { + if (!m) { return 0; } if (!(m->flags & MARIO_UNKNOWN_08)) { return FALSE; } @@ -604,6 +618,7 @@ u32 should_strengthen_gravity_for_jump_ascent(struct MarioState *m) { } void apply_gravity(struct MarioState *m) { + if (!m) { return; } s32 result; if (m->action == ACT_TWIRLING && m->vel[1] < 0.0f) { @@ -656,6 +671,7 @@ void apply_gravity(struct MarioState *m) { } void apply_vertical_wind(struct MarioState *m) { + if (!m) { return; } f32 maxVelY; f32 offsetY; @@ -751,12 +767,14 @@ s32 perform_air_step(struct MarioState *m, u32 stepArg) { // They had these functions the whole time and never used them? Lol void set_vel_from_pitch_and_yaw(struct MarioState *m) { + if (!m) { return; } m->vel[0] = m->forwardVel * coss(m->faceAngle[0]) * sins(m->faceAngle[1]); m->vel[1] = m->forwardVel * sins(m->faceAngle[0]); m->vel[2] = m->forwardVel * coss(m->faceAngle[0]) * coss(m->faceAngle[1]); } void set_vel_from_yaw(struct MarioState *m) { + if (!m) { return; } m->vel[0] = m->slideVelX = m->forwardVel * sins(m->faceAngle[1]); m->vel[1] = 0.0f; m->vel[2] = m->slideVelZ = m->forwardVel * coss(m->faceAngle[1]); diff --git a/src/game/obj_behaviors.c b/src/game/obj_behaviors.c index 1094fd91..ebf8c436 100644 --- a/src/game/obj_behaviors.c +++ b/src/game/obj_behaviors.c @@ -157,6 +157,7 @@ void turn_obj_away_from_surface(f32 velX, f32 velZ, f32 nX, UNUSED f32 nY, f32 n * Finds any wall collisions, applies them, and turns away from the surface. */ s8 obj_find_wall(f32 objNewX, f32 objY, f32 objNewZ, f32 objVelX, f32 objVelZ) { + if (!o) { return 0; } struct WallCollisionData hitbox; f32 wall_nX, wall_nY, wall_nZ, objVelXCopy, objVelZCopy, objYawX, objYawZ; @@ -198,6 +199,7 @@ s8 obj_find_wall(f32 objNewX, f32 objY, f32 objNewZ, f32 objVelX, f32 objVelZ) { * Turns an object away from steep floors, similarly to walls. */ s8 turn_obj_away_from_steep_floor(struct Surface *objFloor, f32 floorY, f32 objVelX, f32 objVelZ) { + if (!o) { return 0; } f32 floor_nX, floor_nY, floor_nZ, objVelXCopy, objVelZCopy, objYawX, objYawZ; if (objFloor == NULL) { @@ -264,6 +266,7 @@ void obj_orient_graph(struct Object *obj, f32 normalX, f32 normalY, f32 normalZ) * Determines an object's forward speed multiplier. */ void calc_obj_friction(f32 *objFriction, f32 floor_nY) { + if (!o) { return; } if (!objFriction) { return; } if (floor_nY < 0.2 && o->oFriction < 0.9999) { *objFriction = 0; @@ -276,6 +279,7 @@ void calc_obj_friction(f32 *objFriction, f32 floor_nY) { * Updates an objects speed for gravity and updates Y position. */ void calc_new_obj_vel_and_pos_y(struct Surface *objFloor, f32 objFloorY, f32 objVelX, f32 objVelZ) { + if (!o) { return; } if (!objFloor) { return; } f32 floor_nX = objFloor->normal.x; f32 floor_nY = objFloor->normal.y; @@ -335,6 +339,7 @@ void calc_new_obj_vel_and_pos_y(struct Surface *objFloor, f32 objFloorY, f32 obj void calc_new_obj_vel_and_pos_y_underwater(struct Surface *objFloor, f32 floorY, f32 objVelX, f32 objVelZ, f32 waterY) { + if (!o) { return; } if (!objFloor) { return; } f32 floor_nX = objFloor->normal.x; f32 floor_nY = objFloor->normal.y; @@ -405,6 +410,7 @@ void calc_new_obj_vel_and_pos_y_underwater(struct Surface *objFloor, f32 floorY, * Updates an objects position from oForwardVel and oMoveAngleYaw. */ void obj_update_pos_vel_xz(void) { + if (!o) { return; } f32 xVel = o->oForwardVel * sins(o->oMoveAngleYaw); f32 zVel = o->oForwardVel * coss(o->oMoveAngleYaw); @@ -417,6 +423,7 @@ void obj_update_pos_vel_xz(void) { * if underwater. */ void obj_splash(s32 waterY, s32 objY) { + if (!o) { return; } u32 globalTimer = gGlobalTimer; // Spawns waves if near surface of water and plays a noise if entering. @@ -439,6 +446,7 @@ void obj_splash(s32 waterY, s32 objY) { * Returns flags for certain interactions. */ s16 object_step(void) { + if (!o) { return 0; } f32 objX = o->oPosX; f32 objY = o->oPosY; f32 objZ = o->oPosZ; @@ -506,7 +514,7 @@ s16 object_step_without_floor_orient(void) { * position. */ void obj_move_xyz_using_fvel_and_yaw(struct Object *obj) { - if (!obj) { return; } + if (!o || !obj) { return; } o->oVelX = obj->oForwardVel * sins(obj->oMoveAngleYaw); o->oVelZ = obj->oForwardVel * coss(obj->oMoveAngleYaw); @@ -705,6 +713,7 @@ u8 is_nearest_mario_state_to_object(struct MarioState *m, struct Object *obj) { u8 is_nearest_player_to_object(struct Object *m, struct Object *obj) { if (m == NULL || obj == NULL) { return FALSE; } struct MarioState *nearest = nearest_mario_state_to_object(obj); + if (!nearest) { return FALSE; } return m == nearest->marioObj; } @@ -818,6 +827,7 @@ s8 obj_find_wall_displacement(Vec3f dist, f32 x, f32 y, f32 z, f32 radius) { * with a random forward velocity, y velocity, and direction. */ void obj_spawn_yellow_coins(struct Object *obj, s8 nCoins) { + if (!o) { return; } if (!obj) { return; } struct Object *coin; s8 count; @@ -888,6 +898,7 @@ s8 current_mario_room_check(s16 room) { * Triggers dialog when Mario is facing an object and controls it while in the dialog. */ s16 trigger_obj_dialog_when_facing(struct MarioState* m, s32 *inDialog, s16 dialogID, f32 dist, s32 actionArg, u8 (*inContinueDialogFunction)(void)) { + if (!o) { return 0; } if (!m || !inDialog) { return 0; } s16 dialogueResponse; @@ -917,9 +928,8 @@ s16 trigger_obj_dialog_when_facing(struct MarioState* m, s32 *inDialog, s16 dial *Checks if a floor is one that should cause an object to "die". */ void obj_check_floor_death(s16 collisionFlags, struct Surface *floor) { - if (floor == NULL) { - return; - } + if (!o) { return; } + if (floor == NULL) { return; } if ((collisionFlags & OBJ_COL_FLAG_GROUNDED) == OBJ_COL_FLAG_GROUNDED) { switch (floor->type) { @@ -941,6 +951,7 @@ void obj_check_floor_death(s16 collisionFlags, struct Surface *floor) { * audio, and eventually despawning it. Returns TRUE when the obj is dead. */ s8 obj_lava_death(void) { + if (!o) { return 0; } struct Object *deathSmoke; if (o->oTimer >= 31) { diff --git a/src/game/obj_behaviors_2.c b/src/game/obj_behaviors_2.c index 3e0dd0a4..0aac3258 100644 --- a/src/game/obj_behaviors_2.c +++ b/src/game/obj_behaviors_2.c @@ -83,6 +83,7 @@ void wiggler_jumped_on_attack_handler(void); void huge_goomba_weakly_attacked(void); s32 obj_is_rendering_enabled(void) { + if (!o) { return 0; } if (o->header.gfx.node.flags & GRAPH_RENDER_ACTIVE) { return TRUE; } else { @@ -91,6 +92,7 @@ s32 obj_is_rendering_enabled(void) { } s16 obj_get_pitch_from_vel(void) { + if (!o) { return 0; } return -atan2s(o->oForwardVel, o->oVelY); } @@ -113,11 +115,13 @@ static s32 obj_update_race_proposition_dialog(struct MarioState* m, s16 dialogID } void obj_set_dist_from_home(f32 distFromHome) { + if (!o) { return; } o->oPosX = o->oHomeX + distFromHome * coss(o->oMoveAngleYaw); o->oPosZ = o->oHomeZ + distFromHome * sins(o->oMoveAngleYaw); } s32 obj_is_near_to_and_facing_mario(struct MarioState* m, f32 maxDist, s16 maxAngleDiff) { + if (!o) { return 0; } struct Object* player = m->marioObj; s32 distanceToPlayer = dist_between_objects(o, player); s32 angleToPlayer = obj_angle_to_object(o, player); @@ -131,6 +135,7 @@ s32 obj_is_near_to_and_facing_mario(struct MarioState* m, f32 maxDist, s16 maxAn //! Although having no return value, this function //! must be u32 to match other functions on -O2. static BAD_RETURN(u32) obj_perform_position_op(s32 op) { + if (!o) { return; } switch (op) { case POS_OP_SAVE_POSITION: sObjSavedPosX = o->oPosX; @@ -153,6 +158,7 @@ static BAD_RETURN(u32) obj_perform_position_op(s32 op) { } void platform_on_track_update_pos_or_spawn_ball(s32 ballIndex, f32 x, f32 y, f32 z) { + if (!o) { return; } struct Object *trackBall; struct Waypoint *initialPrevWaypoint; struct Waypoint *nextWaypoint; @@ -250,6 +256,7 @@ void platform_on_track_update_pos_or_spawn_ball(s32 ballIndex, f32 x, f32 y, f32 } void cur_obj_spin_all_dimensions(f32 arg0, f32 arg1) { + if (!o) { return; } f32 val24; f32 val20; f32 val1C; @@ -305,6 +312,7 @@ void cur_obj_spin_all_dimensions(f32 arg0, f32 arg1) { } void obj_rotate_yaw_and_bounce_off_walls(s16 targetYaw, s16 turnAmount) { + if (!o) { return; } if (o->oMoveFlags & OBJ_MOVE_HIT_WALL) { targetYaw = cur_obj_reflect_move_angle_off_wall(); } @@ -312,10 +320,12 @@ void obj_rotate_yaw_and_bounce_off_walls(s16 targetYaw, s16 turnAmount) { } s16 obj_get_pitch_to_home(f32 latDistToHome) { + if (!o) { return 0; } return atan2s(latDistToHome, o->oPosY - o->oHomeY); } void obj_compute_vel_from_move_pitch(f32 speed) { + if (!o) { return; } o->oForwardVel = speed * coss(o->oMoveAnglePitch); o->oVelY = speed * -sins(o->oMoveAnglePitch); } @@ -368,6 +378,7 @@ s32 cur_obj_set_anim_if_at_end(s32 arg0) { } s32 cur_obj_play_sound_at_anim_range(s8 arg0, s8 arg1, u32 sound) { + if (!o) { return 0; } s32 val04; if ((val04 = o->header.gfx.animInfo.animAccel / 0x10000) <= 0) { @@ -383,6 +394,7 @@ s32 cur_obj_play_sound_at_anim_range(s8 arg0, s8 arg1, u32 sound) { } s16 obj_turn_pitch_toward_mario(struct MarioState* m, f32 targetOffsetY, s16 turnAmount) { + if (!o) { return 0; } if (!m) { return 0; } s16 targetPitch; @@ -394,6 +406,7 @@ s16 obj_turn_pitch_toward_mario(struct MarioState* m, f32 targetOffsetY, s16 tur } s32 approach_f32_ptr(f32 *px, f32 target, f32 delta) { + if (!px) { return FALSE; } if (*px > target) { delta = -delta; } @@ -408,14 +421,17 @@ s32 approach_f32_ptr(f32 *px, f32 target, f32 delta) { } s32 obj_forward_vel_approach(f32 target, f32 delta) { + if (!o) { return 0; } return approach_f32_ptr(&o->oForwardVel, target, delta); } s32 obj_y_vel_approach(f32 target, f32 delta) { + if (!o) { return 0; } return approach_f32_ptr(&o->oVelY, target, delta); } s32 obj_move_pitch_approach(s16 target, s16 delta) { + if (!o) { return 0; } o->oMoveAnglePitch = approach_s16_symmetric(o->oMoveAnglePitch, target, delta); if ((s16) o->oMoveAnglePitch == target) { @@ -426,6 +442,7 @@ s32 obj_move_pitch_approach(s16 target, s16 delta) { } s32 obj_face_pitch_approach(s16 targetPitch, s16 deltaPitch) { + if (!o) { return 0; } o->oFaceAnglePitch = approach_s16_symmetric(o->oFaceAnglePitch, targetPitch, deltaPitch); if ((s16) o->oFaceAnglePitch == targetPitch) { @@ -436,6 +453,7 @@ s32 obj_face_pitch_approach(s16 targetPitch, s16 deltaPitch) { } s32 obj_face_yaw_approach(s16 targetYaw, s16 deltaYaw) { + if (!o) { return 0; } o->oFaceAngleYaw = approach_s16_symmetric(o->oFaceAngleYaw, targetYaw, deltaYaw); if ((s16) o->oFaceAngleYaw == targetYaw) { @@ -446,6 +464,7 @@ s32 obj_face_yaw_approach(s16 targetYaw, s16 deltaYaw) { } s32 obj_face_roll_approach(s16 targetRoll, s16 deltaRoll) { + if (!o) { return 0; } o->oFaceAngleRoll = approach_s16_symmetric(o->oFaceAngleRoll, targetRoll, deltaRoll); if ((s16) o->oFaceAngleRoll == targetRoll) { @@ -471,6 +490,7 @@ s32 obj_smooth_turn(s16 *angleVel, s32 *angle, s16 targetAngle, f32 targetSpeedP } void obj_roll_to_match_yaw_turn(s16 targetYaw, s16 maxRoll, s16 rollSpeed) { + if (!o) { return; } s16 targetRoll = o->oMoveAngleYaw - targetYaw; clamp_s16(&targetRoll, -maxRoll, maxRoll); obj_face_roll_approach(targetRoll, rollSpeed); @@ -481,10 +501,12 @@ s16 random_linear_offset(s16 base, s16 range) { } s16 random_mod_offset(s16 base, s16 step, s16 mod) { + if (!mod) { return 0; } return base + step * (random_u16() % mod); } s16 obj_random_fixed_turn(s16 delta) { + if (!o) { return 0; } return o->oMoveAngleYaw + (s16) random_sign() * delta; } @@ -496,6 +518,7 @@ s16 obj_random_fixed_turn(s16 delta) { * Return -1 once it's reached endScale. */ s32 obj_grow_then_shrink(f32 *scaleVel, f32 shootFireScale, f32 endScale) { + if (!o) { return 0; } if (o->oTimer < 2) { o->header.gfx.scale[0] += *scaleVel; @@ -542,6 +565,7 @@ s32 oscillate_toward(s32 *value, f32 *vel, s32 target, f32 velCloseToZero, f32 a void obj_update_blinking(s32 *blinkTimer, s16 baseCycleLength, s16 cycleLengthRange, s16 blinkLength) { + if (!o) { return; } if (*blinkTimer != 0) { *blinkTimer -= 1; } else { @@ -556,6 +580,7 @@ void obj_update_blinking(s32 *blinkTimer, s16 baseCycleLength, s16 cycleLengthRa } s32 obj_resolve_object_collisions(s32 *targetYaw) { + if (!o) { return 0; } struct Object *otherObject; f32 dx; f32 dz; @@ -602,6 +627,7 @@ s32 obj_resolve_object_collisions(s32 *targetYaw) { } s32 obj_bounce_off_walls_edges_objects(s32 *targetYaw) { + if (!o) { return 0; } if (o->oMoveFlags & OBJ_MOVE_HIT_WALL) { *targetYaw = cur_obj_reflect_move_angle_off_wall(); } else if (o->oMoveFlags & OBJ_MOVE_HIT_EDGE) { @@ -624,6 +650,7 @@ s32 obj_resolve_collisions_and_turn(s16 targetYaw, s16 turnSpeed) { } void obj_die_if_health_non_positive(void) { + if (!o) { return; } if (o->oHealth <= 0) { if (o->oDeathSound == 0) { spawn_mist_particles_with_sound(SOUND_OBJ_DEFAULT_DEATH); @@ -651,11 +678,13 @@ void obj_die_if_health_non_positive(void) { } void obj_unused_die(void) { + if (!o) { return; } o->oHealth = 0; obj_die_if_health_non_positive(); } void obj_set_knockback_action(s32 attackType) { + if (!o) { return; } switch (attackType) { case ATTACK_KICK_OR_TRIP: case ATTACK_FAST_ATTACK: @@ -680,11 +709,13 @@ void obj_set_knockback_action(s32 attackType) { } void obj_set_squished_action(void) { + if (!o) { return; } cur_obj_play_sound_2(SOUND_OBJ_STOMPED); o->oAction = OBJ_ACT_SQUISHED; } s32 obj_die_if_above_lava_and_health_non_positive(void) { + if (!o) { return 0; } if (o->oMoveFlags & OBJ_MOVE_UNDERWATER_ON_GROUND) { if (o->oGravity + o->oBuoyancy > 0.0f || find_water_level(o->oPosX, o->oPosZ) - o->oPosY < 150.0f) { @@ -707,6 +738,7 @@ s32 obj_die_if_above_lava_and_health_non_positive(void) { s32 obj_handle_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction, u8 *attackHandlers) { + if (!o) { return 0; } s32 attackType; obj_set_hitbox(o, hitbox); @@ -771,6 +803,7 @@ s32 obj_handle_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction, } void obj_act_knockback(UNUSED f32 baseScale) { + if (!o) { return; } cur_obj_update_floor_and_walls(); if (o->header.gfx.animInfo.curAnim != NULL) { @@ -788,6 +821,7 @@ void obj_act_knockback(UNUSED f32 baseScale) { } void obj_act_squished(f32 baseScale) { + if (!o) { return; } f32 targetScaleY = baseScale * 0.3f; cur_obj_update_floor_and_walls(); @@ -809,6 +843,7 @@ void obj_act_squished(f32 baseScale) { } s32 obj_update_standard_actions(f32 scale) { + if (!o) { return 0; } if (o->oAction < 100) { return TRUE; } else { @@ -830,6 +865,7 @@ s32 obj_update_standard_actions(f32 scale) { } s32 obj_check_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction) { + if (!o) { return 0; } s32 attackType; obj_set_hitbox(o, hitbox); @@ -856,6 +892,7 @@ s32 obj_check_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction) { } s32 obj_move_for_one_second(s32 endAction) { + if (!o) { return 0; } cur_obj_update_floor_and_walls(); cur_obj_extend_animation_if_at_end(); @@ -887,6 +924,7 @@ s32 obj_move_for_one_second(s32 endAction) { * with partial updates. */ void treat_far_home_as_mario(f32 threshold, s32* distanceToPlayer, s32* angleToPlayer) { + if (!o) { return; } f32 dx = o->oHomeX - o->oPosX; f32 dy = o->oHomeY - o->oPosY; f32 dz = o->oHomeZ - o->oPosZ; diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index d842c33b..cdf6c3e1 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -215,7 +215,7 @@ Gfx *geo_switch_area(s32 callContext, struct GraphNode *node) { struct MarioState* m = &gMarioStates[i]; if (!is_player_active(m)) { continue; } - struct Object* door = m->interactObj; + struct Object* door = m ? m->interactObj : NULL; if (door == NULL) { continue; } if (door->oInteractType != INTERACT_DOOR) { continue; } if (door->oAction == 0) { continue; } @@ -360,6 +360,7 @@ f32 dist_between_object_and_point(struct Object *obj, f32 pointX, f32 pointY, f3 } void cur_obj_forward_vel_approach_upward(f32 target, f32 increment) { + if (!o) { return; } if (o->oForwardVel >= target) { o->oForwardVel = target; } else { @@ -429,6 +430,7 @@ s16 approach_s16_symmetric(s16 value, s16 target, s16 increment) { } s32 cur_obj_rotate_yaw_toward(s16 target, s16 increment) { + if (!o) { return 0; } s16 startYaw; startYaw = (s16) o->oMoveAngleYaw; @@ -456,6 +458,7 @@ s16 obj_angle_to_object(struct Object *obj1, struct Object *obj2) { s16 obj_pitch_to_object(struct Object* obj, struct Object* target) { if (obj == NULL) { return 0; } + if (!target) { return 0; } f32 a, b, c, d; a = target->oPosX - obj->oPosX; c = target->oPosZ - obj->oPosZ; @@ -480,7 +483,7 @@ s16 obj_angle_to_point(struct Object *obj, f32 pointX, f32 pointZ) { } s16 obj_turn_toward_object(struct Object *obj, struct Object *target, s16 angleIndex, s16 turnAmount) { - if (obj == NULL || target == NULL) { return 0; } + if (obj == NULL || target == NULL || !o) { return 0; } f32 a, b, c, d; UNUSED s32 unused; s16 targetAngle = 0; @@ -751,6 +754,7 @@ struct Object *spawn_object_relative_with_scale(s16 behaviorParam, s16 relativeP } void cur_obj_move_using_vel(void) { + if (!o) { return; } o->oPosX += o->oVelX; o->oPosY += o->oVelY; o->oPosZ += o->oVelZ; @@ -792,6 +796,7 @@ void obj_set_gfx_pos_from_pos(struct Object *obj) { } void obj_init_animation(struct Object *obj, s32 animIndex) { + if (!o || !obj) { return; } struct AnimationTable *animations = o->oAnimations; if (animations && (u32)animIndex < animations->count) { geo_obj_init_animation(&obj->header.gfx, animations->anims[animIndex]); @@ -869,12 +874,14 @@ void obj_scale(struct Object *obj, f32 scale) { } void cur_obj_scale(f32 scale) { + if (!o) { return; } o->header.gfx.scale[0] = scale; o->header.gfx.scale[1] = scale; o->header.gfx.scale[2] = scale; } void cur_obj_init_animation(s32 animIndex) { + if (!o) { return; } struct AnimationTable *animations = o->oAnimations; if (animations && (u32)animIndex < animations->count) { geo_obj_init_animation(&o->header.gfx, animations->anims[animIndex]); @@ -882,6 +889,7 @@ void cur_obj_init_animation(s32 animIndex) { } void cur_obj_init_animation_with_sound(s32 animIndex) { + if (!o) { return; } struct AnimationTable *animations = o->oAnimations; if (animations && (u32)animIndex < animations->count) { geo_obj_init_animation(&o->header.gfx, animations->anims[animIndex]); @@ -890,6 +898,7 @@ void cur_obj_init_animation_with_sound(s32 animIndex) { } void obj_init_animation_with_accel_and_sound(struct Object *obj, s32 animIndex, f32 accel) { + if (!o) { return; } if (obj != NULL) { struct AnimationTable *animations = o->oAnimations; if (animations && (u32)animIndex < animations->count) { @@ -901,6 +910,7 @@ void obj_init_animation_with_accel_and_sound(struct Object *obj, s32 animIndex, } void cur_obj_init_animation_with_accel_and_sound(s32 animIndex, f32 accel) { + if (!o) { return; } struct AnimationTable *animations = o->oAnimations; if (animations && (u32)animIndex < animations->count) { s32 animAccel = (s32)(accel * 65536.0f); @@ -924,6 +934,7 @@ void cur_obj_enable_rendering_and_become_tangible(struct Object *obj) { } void cur_obj_enable_rendering(void) { + if (!o) { return; } o->header.gfx.node.flags |= GRAPH_RENDER_ACTIVE; } @@ -934,18 +945,22 @@ void cur_obj_disable_rendering_and_become_intangible(struct Object *obj) { } void cur_obj_disable_rendering(void) { + if (!o) { return; } o->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE; } void cur_obj_unhide(void) { + if (!o) { return; } o->header.gfx.node.flags &= ~GRAPH_RENDER_INVISIBLE; } void cur_obj_hide(void) { + if (!o) { return; } o->header.gfx.node.flags |= GRAPH_RENDER_INVISIBLE; } void cur_obj_set_pos_relative(struct Object *other, f32 dleft, f32 dy, f32 dforward) { + if (!o) { return; } if (other == NULL) { return; } f32 facingZ = coss(other->oMoveAngleYaw); f32 facingX = sins(other->oMoveAngleYaw); @@ -961,6 +976,7 @@ void cur_obj_set_pos_relative(struct Object *other, f32 dleft, f32 dy, f32 dforw } void cur_obj_set_pos_relative_to_parent(f32 dleft, f32 dy, f32 dforward) { + if (!o) { return; } cur_obj_set_pos_relative(o->parentObj, dleft, dy, dforward); } @@ -969,6 +985,7 @@ void cur_obj_enable_rendering_2(void) { } void cur_obj_unused_init_on_floor(void) { + if (!o) { return; } cur_obj_enable_rendering(); o->oPosY = find_floor_height(o->oPosX, o->oPosY, o->oPosZ); @@ -1207,17 +1224,21 @@ struct Object *cur_obj_find_nearby_held_actor(const BehaviorScript *behavior, f3 } void cur_obj_reset_timer_and_subaction(void) { + if (!o) { return; } o->oTimer = 0; o->oSubAction = 0; } void cur_obj_change_action(s32 action) { + if (!o) { return; } o->oAction = action; o->oPrevAction = action; cur_obj_reset_timer_and_subaction(); } void cur_obj_set_vel_from_mario_vel(struct MarioState* m, f32 f12, f32 f14) { + if (!o) { return; } + if (!m) { return; } f32 sp4 = m->forwardVel; f32 sp0 = f12 * f14; @@ -1229,12 +1250,14 @@ void cur_obj_set_vel_from_mario_vel(struct MarioState* m, f32 f12, f32 f14) { } BAD_RETURN(s16) cur_obj_reverse_animation(void) { + if (!o) { return; } if (o->header.gfx.animInfo.animFrame >= 0) { o->header.gfx.animInfo.animFrame--; } } BAD_RETURN(s32) cur_obj_extend_animation_if_at_end(void) { + if (!o) { return; } s32 sp4 = o->header.gfx.animInfo.animFrame; s32 sp0 = o->header.gfx.animInfo.curAnim ? o->header.gfx.animInfo.curAnim->loopEnd - 2 : 0; @@ -1242,6 +1265,7 @@ BAD_RETURN(s32) cur_obj_extend_animation_if_at_end(void) { } s32 cur_obj_check_if_near_animation_end(void) { + if (!o) { return 0; } u32 animFlags = o->header.gfx.animInfo.curAnim ? (s32) o->header.gfx.animInfo.curAnim->flags : 0; s32 animFrame = o->header.gfx.animInfo.animFrame; s32 nearLoopEnd = o->header.gfx.animInfo.curAnim ? o->header.gfx.animInfo.curAnim->loopEnd - 2 : 0; @@ -1259,6 +1283,7 @@ s32 cur_obj_check_if_near_animation_end(void) { } s32 cur_obj_check_if_at_animation_end(void) { + if (!o) { return 0; } s32 animFrame = o->header.gfx.animInfo.animFrame; s32 lastFrame = o->header.gfx.animInfo.curAnim ? o->header.gfx.animInfo.curAnim->loopEnd - 1 : 0; @@ -1270,6 +1295,7 @@ s32 cur_obj_check_if_at_animation_end(void) { } s32 cur_obj_check_anim_frame(s32 frame) { + if (!o) { return 0; } s32 animFrame = o->header.gfx.animInfo.animFrame; if (animFrame == frame) { @@ -1280,6 +1306,7 @@ s32 cur_obj_check_anim_frame(s32 frame) { } s32 cur_obj_check_anim_frame_in_range(s32 startFrame, s32 rangeLength) { + if (!o) { return 0; } s32 animFrame = o->header.gfx.animInfo.animFrame; if (animFrame >= startFrame && animFrame < startFrame + rangeLength) { @@ -1290,6 +1317,7 @@ s32 cur_obj_check_anim_frame_in_range(s32 startFrame, s32 rangeLength) { } s32 cur_obj_check_frame_prior_current_frame(s16 *a0) { + if (!o) { return 0; } s16 sp6 = o->header.gfx.animInfo.animFrame; while (*a0 != -1) { @@ -1304,6 +1332,7 @@ s32 cur_obj_check_frame_prior_current_frame(s16 *a0) { } s32 mario_is_in_air_action(struct MarioState* m) { + if (!m) { return 0; } if (m->action & ACT_FLAG_AIR) { return TRUE; } else { @@ -1312,6 +1341,7 @@ s32 mario_is_in_air_action(struct MarioState* m) { } s32 mario_is_dive_sliding(struct MarioState* m) { + if (!m) { return 0; } if (m->action == ACT_DIVE_SLIDE) { return TRUE; } else { @@ -1320,11 +1350,13 @@ s32 mario_is_dive_sliding(struct MarioState* m) { } void cur_obj_set_y_vel_and_animation(f32 sp18, s32 sp1C) { + if (!o) { return; } o->oVelY = sp18; cur_obj_init_animation_with_sound(sp1C); } void cur_obj_unrender_and_reset_state(s32 sp18, s32 sp1C) { + if (!o) { return; } cur_obj_become_intangible(); cur_obj_disable_rendering(); @@ -1336,6 +1368,7 @@ void cur_obj_unrender_and_reset_state(s32 sp18, s32 sp1C) { } void cur_obj_move_after_thrown_or_dropped(f32 forwardVel, f32 velY) { + if (!o) { return; } o->oMoveFlags = 0; o->oFloorHeight = find_floor_height(o->oPosX, o->oPosY + 160.0f, o->oPosZ); @@ -1356,6 +1389,7 @@ void cur_obj_move_after_thrown_or_dropped(f32 forwardVel, f32 velY) { } void cur_obj_get_thrown_or_placed(f32 forwardVel, f32 velY, s32 thrownAction) { + if (!o) { return; } if (o->behavior == segmented_to_virtual(smlua_override_behavior(bhvBowser))) { // Interestingly, when bowser is thrown, he is offset slightly to // Mario's right @@ -1382,6 +1416,7 @@ void cur_obj_get_thrown_or_placed(f32 forwardVel, f32 velY, s32 thrownAction) { } void cur_obj_get_dropped(void) { + if (!o) { return; } cur_obj_become_tangible(); cur_obj_enable_rendering(); @@ -1410,6 +1445,7 @@ void mario_set_flag(s32 flag) { } s32 cur_obj_clear_interact_status_flag(s32 flag) { + if (!o) { return 0; } if (o->oInteractStatus & flag) { o->oInteractStatus &= flag ^ ~(0); return TRUE; @@ -1437,25 +1473,30 @@ void cur_obj_disable(void) { } void cur_obj_become_intangible(void) { + if (!o) { return; } // When the timer is negative, the object is intangible and the timer // doesn't count down o->oIntangibleTimer = -1; } void cur_obj_become_tangible(void) { + if (!o) { return; } o->oIntangibleTimer = 0; } void obj_become_tangible(struct Object *obj) { + if (!obj) { return; } obj->oIntangibleTimer = 0; } void cur_obj_update_floor_height(void) { + if (!o) { return; } struct Surface *floor; o->oFloorHeight = find_floor(o->oPosX, o->oPosY, o->oPosZ, &floor); } struct Surface *cur_obj_update_floor_height_and_get_floor(void) { + if (!o) { return NULL; } struct Surface *floor; o->oFloorHeight = find_floor(o->oPosX, o->oPosY, o->oPosZ, &floor); return floor; @@ -1483,11 +1524,13 @@ void apply_drag_to_value(f32 *value, f32 dragStrength) { } void cur_obj_apply_drag_xz(f32 dragStrength) { + if (!o) { return; } apply_drag_to_value(&o->oVelX, dragStrength); apply_drag_to_value(&o->oVelZ, dragStrength); } s32 cur_obj_move_xz(f32 steepSlopeNormalY, s32 careAboutEdgesAndSteepSlopes) { + if (!o) { return 0; } struct Surface *intendedFloor = NULL; f32 intendedX = o->oPosX + o->oVelX; @@ -1547,6 +1590,7 @@ s32 cur_obj_move_xz(f32 steepSlopeNormalY, s32 careAboutEdgesAndSteepSlopes) { } void cur_obj_move_update_underwater_flags(void) { + if (!o) { return; } f32 decelY = (f32)(sqrtf(o->oVelY * o->oVelY) * (o->oDragStrength * 7.0f)) / 100.0L; if (o->oVelY > 0) { @@ -1564,6 +1608,7 @@ void cur_obj_move_update_underwater_flags(void) { } void cur_obj_move_update_ground_air_flags(UNUSED f32 gravity, f32 bounciness) { + if (!o) { return; } o->oMoveFlags &= ~OBJ_MOVE_BOUNCE; if (o->oPosY < o->oFloorHeight) { @@ -1599,6 +1644,7 @@ void cur_obj_move_update_ground_air_flags(UNUSED f32 gravity, f32 bounciness) { } f32 cur_obj_move_y_and_get_water_level(f32 gravity, f32 buoyancy) { + if (!o) { return 0; } f32 waterLevel; o->oVelY += gravity + buoyancy; @@ -1617,6 +1663,7 @@ f32 cur_obj_move_y_and_get_water_level(f32 gravity, f32 buoyancy) { } void cur_obj_move_y(f32 gravity, f32 bounciness, f32 buoyancy) { + if (!o) { return; } f32 waterLevel; o->oMoveFlags &= ~OBJ_MOVE_LEFT_GROUND; @@ -1670,6 +1717,7 @@ static void stub_obj_helpers_1(void) { } void cur_obj_unused_resolve_wall_collisions(f32 offsetY, f32 radius) { + if (!o) { return; } if (radius > 0.1L) { f32_find_wall_collision(&o->oPosX, &o->oPosY, &o->oPosZ, offsetY, radius); } @@ -1690,6 +1738,7 @@ s16 abs_angle_diff(s16 x0, s16 x1) { } void cur_obj_move_xz_using_fvel_and_yaw(void) { + if (!o) { return; } o->oVelX = o->oForwardVel * sins(o->oMoveAngleYaw); o->oVelZ = o->oForwardVel * coss(o->oMoveAngleYaw); @@ -1698,6 +1747,7 @@ void cur_obj_move_xz_using_fvel_and_yaw(void) { } void cur_obj_move_y_with_terminal_vel(void) { + if (!o) { return; } if (o->oVelY < -70.0f) { o->oVelY = -70.0f; } @@ -1706,6 +1756,7 @@ void cur_obj_move_y_with_terminal_vel(void) { } void cur_obj_compute_vel_xz(void) { + if (!o) { return; } o->oVelX = o->oForwardVel * sins(o->oMoveAngleYaw); o->oVelZ = o->oForwardVel * coss(o->oMoveAngleYaw); } @@ -1740,14 +1791,17 @@ s32 obj_check_if_collided_with_object(struct Object *obj1, struct Object *obj2) } void cur_obj_set_behavior(const BehaviorScript *behavior) { + if (!o) { return; } o->behavior = segmented_to_virtual(behavior); } void obj_set_behavior(struct Object *obj, const BehaviorScript *behavior) { + if (!obj) { return; } obj->behavior = segmented_to_virtual(behavior); } s32 cur_obj_has_behavior(const BehaviorScript *behavior) { + if (!o) { return 0; } behavior = smlua_override_behavior(behavior); if (o->behavior == segmented_to_virtual(behavior)) { return TRUE; @@ -1767,6 +1821,7 @@ s32 obj_has_behavior(struct Object *obj, const BehaviorScript *behavior) { } f32 cur_obj_lateral_dist_from_obj_to_home(struct Object *obj) { + if (!o) { return 0; } f32 dist; f32 dx = o->oHomeX - obj->oPosX; f32 dz = o->oHomeZ - obj->oPosZ; @@ -1776,6 +1831,7 @@ f32 cur_obj_lateral_dist_from_obj_to_home(struct Object *obj) { } f32 cur_obj_lateral_dist_from_mario_to_home(void) { + if (!o) { return 0; } struct Object* player = nearest_player_to_object(o); if (!player) { return 10000; } f32 dist; @@ -1787,6 +1843,7 @@ f32 cur_obj_lateral_dist_from_mario_to_home(void) { } f32 cur_obj_lateral_dist_to_home(void) { + if (!o) { return 0; } f32 dist; f32 dx = o->oHomeX - o->oPosX; f32 dz = o->oHomeZ - o->oPosZ; @@ -1796,6 +1853,7 @@ f32 cur_obj_lateral_dist_to_home(void) { } s32 cur_obj_outside_home_square(f32 halfLength) { + if (!o) { return 0; } if (o->oHomeX - halfLength > o->oPosX) { return TRUE; } @@ -1816,6 +1874,7 @@ s32 cur_obj_outside_home_square(f32 halfLength) { } s32 cur_obj_outside_home_rectangle(f32 minX, f32 maxX, f32 minZ, f32 maxZ) { + if (!o) { return 0; } if (o->oHomeX + minX > o->oPosX) { return TRUE; } @@ -1836,6 +1895,7 @@ s32 cur_obj_outside_home_rectangle(f32 minX, f32 maxX, f32 minZ, f32 maxZ) { } void cur_obj_set_pos_to_home(void) { + if (!o) { return; } o->oPosX = o->oHomeX; o->oPosY = o->oHomeY; o->oPosZ = o->oHomeZ; @@ -1843,6 +1903,7 @@ void cur_obj_set_pos_to_home(void) { } void cur_obj_set_pos_to_home_and_stop(void) { + if (!o) { return; } cur_obj_set_pos_to_home(); o->oForwardVel = 0; @@ -1850,6 +1911,7 @@ void cur_obj_set_pos_to_home_and_stop(void) { } void cur_obj_shake_y(f32 amount) { + if (!o) { return; } //! Technically could cause a bit of drift, but not much if (o->oTimer % 2 == 0) { o->oPosY += amount; @@ -1864,6 +1926,7 @@ void cur_obj_start_cam_event(UNUSED struct Object *obj, s32 cameraEvent) { } void set_mario_interact_hoot_if_in_range(UNUSED s32 sp0, UNUSED s32 sp4, f32 sp8) { + if (!o) { return; } if (o->oDistanceToMario < sp8) { gMarioObject->oInteractStatus = INT_STATUS_HOOT_GRABBED_BY_MARIO; } @@ -1880,6 +1943,7 @@ void obj_set_cylboard(struct Object *obj) { } void cur_obj_set_billboard_if_vanilla_cam(void) { + if (!o) { return; } if (configEnableCamera) { o->header.gfx.node.flags &= ~GRAPH_RENDER_BILLBOARD; o->header.gfx.node.flags |= GRAPH_RENDER_CYLBOARD; @@ -1904,11 +1968,13 @@ void obj_set_hurtbox_radius_and_height(struct Object *o, f32 radius, f32 height) } void cur_obj_set_hitbox_radius_and_height(f32 radius, f32 height) { + if (!o) { return; } o->hitboxRadius = radius; o->hitboxHeight = height; } void cur_obj_set_hurtbox_radius_and_height(f32 radius, f32 height) { + if (!o) { return; } o->hurtboxRadius = radius; o->hurtboxHeight = height; } @@ -1952,11 +2018,14 @@ void obj_spawn_loot_yellow_coins(struct Object *obj, s32 numCoins, f32 sp28) { void cur_obj_spawn_loot_coin_at_mario_pos(struct MarioState* m) { struct Object *coin; - if (o->oNumLootCoins <= 0) { + if (!m) { return; } + if (o && o->oNumLootCoins <= 0) { return; } - o->oNumLootCoins--; + if (o) { + o->oNumLootCoins--; + } coin = spawn_object(o, MODEL_YELLOW_COIN, bhvSingleCoinGetsSpawned); if (coin == NULL) { return; } @@ -1966,6 +2035,7 @@ void cur_obj_spawn_loot_coin_at_mario_pos(struct MarioState* m) { } f32 cur_obj_abs_y_dist_to_home(void) { + if (!o) { return 0; } f32 dist = o->oHomeY - o->oPosY; if (dist < 0) { @@ -1976,6 +2046,7 @@ f32 cur_obj_abs_y_dist_to_home(void) { } s32 cur_obj_advance_looping_anim(void) { + if (!o) { return 0; } s32 animFrame = o->header.gfx.animInfo.animFrame; s32 loopEnd = o->header.gfx.animInfo.curAnim->loopEnd; s32 result; @@ -1994,6 +2065,7 @@ s32 cur_obj_advance_looping_anim(void) { } s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees) { + if (!o) { return 0; } struct Surface *intendedFloor; f32 intendedX, intendedFloorHeight, intendedZ; f32 deltaFloorHeight; @@ -2021,6 +2093,7 @@ s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees) { } s32 cur_obj_resolve_wall_collisions(void) { + if (!o) { return 0; } s32 numCollisions; struct Surface *wall; struct WallCollisionData collisionData; @@ -2055,6 +2128,7 @@ s32 cur_obj_resolve_wall_collisions(void) { } void cur_obj_update_floor(void) { + if (!o) { return; } struct Surface *floor = cur_obj_update_floor_height_and_get_floor(); o->oFloor = floor; @@ -2078,6 +2152,7 @@ void cur_obj_update_floor(void) { } void cur_obj_update_floor_and_resolve_wall_collisions(s16 steepSlopeDegrees) { + if (!o) { return; } #ifdef VERSION_JP o->oMoveFlags &= ~OBJ_MOVE_ABOVE_LAVA; #else @@ -2114,6 +2189,7 @@ void cur_obj_update_floor_and_walls(void) { } void cur_obj_move_standard(s16 steepSlopeAngleDegrees) { + if (!o) { return; } f32 gravity = o->oGravity; f32 bounciness = o->oBounciness; f32 buoyancy = o->oBuoyancy; @@ -2154,6 +2230,7 @@ void cur_obj_move_standard(s16 steepSlopeAngleDegrees) { } s32 cur_obj_within_12k_bounds(void) { + if (!o) { return 0; } if (o->oPosX < -12000.0f || 12000.0f < o->oPosX) { return FALSE; } @@ -2170,6 +2247,7 @@ s32 cur_obj_within_12k_bounds(void) { } void cur_obj_move_using_vel_and_gravity(void) { + if (!o) { return; } //if (cur_obj_within_12k_bounds()) { o->oPosX += o->oVelX; o->oPosZ += o->oVelZ; @@ -2185,6 +2263,7 @@ void cur_obj_move_using_fvel_and_gravity(void) { void obj_set_pos_relative(struct Object *obj, struct Object *other, f32 dleft, f32 dy, f32 dforward) { + if (!obj || !other) { return; } f32 facingZ = coss(other->oMoveAngleYaw); f32 facingX = sins(other->oMoveAngleYaw); @@ -2199,6 +2278,7 @@ void obj_set_pos_relative(struct Object *obj, struct Object *other, f32 dleft, f } s16 cur_obj_angle_to_home(void) { + if (!o) { return 0; } s16 angle; f32 dx = o->oHomeX - o->oPosX; f32 dz = o->oHomeZ - o->oPosZ; @@ -2208,6 +2288,7 @@ s16 cur_obj_angle_to_home(void) { } void obj_set_gfx_pos_at_obj_pos(struct Object *obj1, struct Object *obj2) { + if (!obj1 || !obj2) { return; } obj1->header.gfx.pos[0] = obj2->oPosX; obj1->header.gfx.pos[1] = obj2->oPosY + obj2->oGraphYOffset; obj1->header.gfx.pos[2] = obj2->oPosZ; @@ -2296,24 +2377,28 @@ void obj_create_transform_from_self(struct Object *obj) { } void cur_obj_rotate_move_angle_using_vel(void) { + if (!o) { return; } o->oMoveAnglePitch += o->oAngleVelPitch; o->oMoveAngleYaw += o->oAngleVelYaw; o->oMoveAngleRoll += o->oAngleVelRoll; } void cur_obj_rotate_face_angle_using_vel(void) { + if (!o) { return; } o->oFaceAnglePitch += o->oAngleVelPitch; o->oFaceAngleYaw += o->oAngleVelYaw; o->oFaceAngleRoll += o->oAngleVelRoll; } void cur_obj_set_face_angle_to_move_angle(void) { + if (!o) { return; } o->oFaceAnglePitch = o->oMoveAnglePitch; o->oFaceAngleYaw = o->oMoveAngleYaw; o->oFaceAngleRoll = o->oMoveAngleRoll; } s32 cur_obj_follow_path(UNUSED s32 unusedArg) { + if (!o) { return 0; } struct Waypoint *startWaypoint; struct Waypoint *lastWaypoint; struct Waypoint *targetWaypoint; @@ -2378,6 +2463,7 @@ s32 cur_obj_follow_path(UNUSED s32 unusedArg) { } void chain_segment_init(struct ChainSegment *segment) { + if (!o) { return; } if (segment == NULL) { return; } segment->posX = 0.0f; segment->posY = 0.0f; @@ -2422,6 +2508,7 @@ void obj_build_vel_from_transform(struct Object *a0) { } void cur_obj_set_pos_via_transform(void) { + if (!o) { return; } obj_build_transform_from_pos_and_angle(o, O_PARENT_RELATIVE_POS_INDEX, O_MOVE_ANGLE_INDEX); obj_build_vel_from_transform(o); o->oPosX += o->oVelX; @@ -2430,6 +2517,7 @@ void cur_obj_set_pos_via_transform(void) { } s16 cur_obj_reflect_move_angle_off_wall(void) { + if (!o) { return 0; } s16 angle = o->oWallAngle - ((s16) o->oMoveAngleYaw - (s16) o->oWallAngle) + 0x8000; return angle; } @@ -2517,6 +2605,7 @@ s32 absi(s32 x) { } s32 cur_obj_wait_then_blink(s32 timeUntilBlinking, s32 numBlinks) { + if (!o) { return 0; } s32 done = FALSE; s32 timeBlinking; @@ -2558,6 +2647,7 @@ void spawn_mist_particles_with_sound(u32 sp18) { } void cur_obj_push_mario_away(f32 radius) { + if (!o) { return; } for (s32 i = 0; i < MAX_PLAYERS; i++) { struct Object* player = gMarioStates[i].marioObj; if (!player) { continue; } @@ -2575,6 +2665,7 @@ void cur_obj_push_mario_away(f32 radius) { } void cur_obj_push_mario_away_from_cylinder(f32 radius, f32 extentY) { + if (!o) { return; } for (s32 i = 0; i < MAX_PLAYERS; i++) { struct Object* player = gMarioStates[i].marioObj; if (!player) { continue; } @@ -2600,6 +2691,7 @@ void cur_obj_push_mario_away_from_cylinder(f32 radius, f32 extentY) { } void bhv_dust_smoke_loop(void) { + if (!o) { return; } o->oPosX += o->oVelX; o->oPosY += o->oVelY; o->oPosZ += o->oVelZ; @@ -2615,6 +2707,7 @@ static void stub_obj_helpers_2(void) { } s32 cur_obj_set_direction_table(s8 *a0) { + if (!o) { return 0; } o->oToxBoxMovementPattern = a0; o->oToxBoxMovementStep = 0; @@ -2622,6 +2715,7 @@ s32 cur_obj_set_direction_table(s8 *a0) { } s32 cur_obj_progress_direction_table(void) { + if (!o) { return 0; } s8 spF; s8 *sp8 = o->oToxBoxMovementPattern; s32 sp4 = o->oToxBoxMovementStep + 1; @@ -2642,6 +2736,7 @@ void stub_obj_helpers_3(UNUSED s32 sp0, UNUSED s32 sp4) { } void cur_obj_scale_over_time(s32 a0, s32 a1, f32 sp10, f32 sp14) { + if (!o) { return; } f32 sp4 = sp14 - sp10; f32 sp0 = (f32) o->oTimer / a1; @@ -2659,6 +2754,7 @@ void cur_obj_scale_over_time(s32 a0, s32 a1, f32 sp10, f32 sp14) { } void cur_obj_set_pos_to_home_with_debug(void) { + if (!o) { return; } o->oPosX = o->oHomeX + gDebugInfo[5][0]; o->oPosY = o->oHomeY + gDebugInfo[5][1]; o->oPosZ = o->oHomeZ + gDebugInfo[5][2]; @@ -2687,6 +2783,7 @@ s32 cur_obj_is_any_player_on_platform(void) { } s32 cur_obj_shake_y_until(s32 cycles, s32 amount) { + if (!o) { return 0; } if (o->oTimer % 2 != 0) { o->oPosY -= amount; } else { @@ -2701,6 +2798,7 @@ s32 cur_obj_shake_y_until(s32 cycles, s32 amount) { } s32 cur_obj_move_up_and_down(s32 a0) { + if (!o) { return 0; } if (a0 >= 4 || a0 < 0) { return TRUE; } @@ -2710,6 +2808,7 @@ s32 cur_obj_move_up_and_down(s32 a0) { } void cur_obj_call_action_function(void (*actionFunctions[])(void), uint32_t actionFunctionsLength) { + if (!o) { return; } if (!actionFunctions) { return; } if ((uint32_t)o->oAction >= actionFunctionsLength) { return; } void (*actionFunction)(void) = actionFunctions[o->oAction]; @@ -2718,6 +2817,7 @@ void cur_obj_call_action_function(void (*actionFunctions[])(void), uint32_t acti } struct Object *spawn_star_with_no_lvl_exit(s32 sp20, s32 sp24) { + if (!o) { return NULL; } struct Object *sp1C = spawn_object(o, MODEL_STAR, bhvSpawnedStarNoLevelExit); if (sp1C == NULL) { return NULL; } sp1C->oSparkleSpawnUnk1B0 = sp24; @@ -2738,6 +2838,7 @@ s32 bit_shift_left(s32 a0) { } s32 cur_obj_mario_far_away(void) { + if (!o) { return 0; } for (s32 i = 0; i < MAX_PLAYERS; i++) { if (!is_player_active(&gMarioStates[i])) { continue; } struct Object* player = gMarioStates[i].marioObj; @@ -2784,6 +2885,7 @@ static void stub_obj_helpers_5(void) { } void bhv_init_room(void) { + if (!o) { return; } struct Surface *floor; f32 floorHeight; @@ -2809,6 +2911,7 @@ void bhv_init_room(void) { } void cur_obj_enable_rendering_if_mario_in_room(void) { + if (!o) { return; } if (o->oRoom == -1) { return; } if (gMarioCurrentRoom == 0) { return; } @@ -2842,6 +2945,7 @@ void cur_obj_enable_rendering_if_mario_in_room(void) { } s32 cur_obj_set_hitbox_and_die_if_attacked(struct ObjectHitbox *hitbox, s32 deathSound, s32 noLootCoins) { + if (!o) { return 0; } s32 interacted = FALSE; obj_set_hitbox(o, hitbox); @@ -2867,6 +2971,7 @@ s32 cur_obj_set_hitbox_and_die_if_attacked(struct ObjectHitbox *hitbox, s32 deat void obj_explode_and_spawn_coins(f32 sp18, s32 sp1C) { + if (!o) { return; } spawn_mist_particles_variable(0, 0, sp18); spawn_triangle_break_particles(30, 138, 3.0f, 4); obj_mark_for_deletion(o); @@ -2883,12 +2988,14 @@ void obj_set_collision_data(struct Object *obj, const void *segAddr) { } void cur_obj_if_hit_wall_bounce_away(void) { + if (!o) { return; } if (o->oMoveFlags & OBJ_MOVE_HIT_WALL) { o->oMoveAngleYaw = o->oWallAngle; } } s32 cur_obj_hide_if_mario_far_away_y(f32 distY) { + if (!o) { return 0; } if (!gMarioStates[0].marioObj) { return FALSE; } if (absf(o->oPosY - gMarioStates[0].marioObj->oPosY) < distY * draw_distance_scalar()) { cur_obj_unhide(); @@ -2922,6 +3029,7 @@ s32 geo_offset_klepto_debug(s32 callContext, struct GraphNode *a1, UNUSED s32 sp } s32 obj_is_hidden(struct Object *obj) { + if (!obj) { return 0; } if (obj->header.gfx.node.flags & GRAPH_RENDER_INVISIBLE) { return TRUE; } else { @@ -2960,6 +3068,7 @@ void clear_time_stop_flags(s32 flags) { } s32 cur_obj_can_mario_activate_textbox(struct MarioState* m, f32 radius, f32 height, UNUSED s32 unused) { + if (!o) { return 0; } if (!m->visibleToEnemies) { return FALSE; } if (o->oDistanceToMario < 1500.0f) { f32 latDistToMario = lateral_dist_between_objects(o, m->marioObj); @@ -2981,6 +3090,7 @@ s32 cur_obj_can_mario_activate_textbox_2(struct MarioState* m, f32 radius, f32 h } void cur_obj_end_dialog(struct MarioState* m, s32 dialogFlags, s32 dialogResult) { + if (!o) { return; } if (m->playerIndex != 0) { return; } o->oDialogResponse = dialogResult; @@ -2992,6 +3102,7 @@ void cur_obj_end_dialog(struct MarioState* m, s32 dialogFlags, s32 dialogResult) } s32 cur_obj_update_dialog(struct MarioState* m, s32 actionArg, s32 dialogFlags, s32 dialogID, UNUSED s32 unused, u8 (*inContinueDialogFunction)(void)) { + if (!o) { return 0; } s32 dialogResponse = 0; UNUSED s32 doneTurning = TRUE; @@ -3071,6 +3182,7 @@ s32 cur_obj_update_dialog(struct MarioState* m, s32 actionArg, s32 dialogFlags, } s32 cur_obj_update_dialog_with_cutscene(struct MarioState* m, s32 actionArg, s32 dialogFlags, s32 cutsceneTable, s32 dialogID, u8 (*inContinueDialogFunction)(void)) { + if (!o) { return 0; } s32 dialogResponse = 0; s32 doneTurning = TRUE; @@ -3152,6 +3264,7 @@ s32 cur_obj_update_dialog_with_cutscene(struct MarioState* m, s32 actionArg, s32 } s32 cur_obj_has_model(u16 modelID) { + if (!o) { return 0; } if (modelID >= MAX_LOADED_GRAPH_NODES) { return FALSE; } if (o->header.gfx.sharedChild == gLoadedGraphNodes[modelID]) { return TRUE; @@ -3163,6 +3276,7 @@ s32 cur_obj_has_model(u16 modelID) { } void cur_obj_align_gfx_with_floor(void) { + if (!o) { return; } struct Surface *floor; Vec3f floorNormal; Vec3f position; @@ -3195,6 +3309,7 @@ s32 mario_is_within_rectangle(s16 minX, s16 maxX, s16 minZ, s16 maxZ) { } void cur_obj_shake_screen(s32 shake) { + if (!o) { return; } set_camera_shake_from_point(shake, o->oPosX, o->oPosY, o->oPosZ); } @@ -3219,6 +3334,7 @@ s32 obj_attack_collided_from_other_object(struct Object *obj) { } s32 cur_obj_was_attacked_or_ground_pounded(void) { + if (!o) { return 0; } s32 attacked = FALSE; if ((o->oInteractStatus & INT_STATUS_INTERACTED) @@ -3241,6 +3357,7 @@ void obj_copy_behavior_params(struct Object *dst, struct Object *src) { } void cur_obj_init_animation_and_anim_frame(s32 animIndex, s32 animFrame) { + if (!o) { return; } cur_obj_init_animation_with_sound(animIndex); o->header.gfx.animInfo.animFrame = animFrame; } @@ -3256,6 +3373,7 @@ void cur_obj_init_animation_and_extend_if_at_end(s32 animIndex) { } s32 cur_obj_check_grabbed_mario(void) { + if (!o) { return 0; } if (o->oInteractStatus & INT_STATUS_GRABBED_MARIO) { o->oKingBobombUnk88 = 1; cur_obj_become_intangible(); @@ -3293,15 +3411,20 @@ void cur_obj_unused_play_footstep_sound(s32 animFrame1, s32 animFrame2, s32 soun void enable_time_stop_including_mario(void) { gTimeStopState |= TIME_STOP_ENABLED | TIME_STOP_MARIO_AND_DOORS; - o->activeFlags |= ACTIVE_FLAG_INITIATED_TIME_STOP; + if (o) { + o->activeFlags |= ACTIVE_FLAG_INITIATED_TIME_STOP; + } } void disable_time_stop_including_mario(void) { gTimeStopState &= ~(TIME_STOP_ENABLED | TIME_STOP_MARIO_AND_DOORS); - o->activeFlags &= ~ACTIVE_FLAG_INITIATED_TIME_STOP; + if (o) { + o->activeFlags &= ~ACTIVE_FLAG_INITIATED_TIME_STOP; + } } s32 cur_obj_check_interacted(void) { + if (!o) { return 0; } if (o->oInteractStatus & INT_STATUS_INTERACTED) { o->oInteractStatus = 0; return TRUE; @@ -3311,7 +3434,7 @@ s32 cur_obj_check_interacted(void) { } void cur_obj_spawn_loot_blue_coin(void) { - if (o->oNumLootCoins >= 5) { + if (o && o->oNumLootCoins >= 5) { spawn_object(o, MODEL_BLUE_COIN, bhvMrIBlueCoin); o->oNumLootCoins -= 5; } @@ -3319,6 +3442,7 @@ void cur_obj_spawn_loot_blue_coin(void) { #ifndef VERSION_JP void cur_obj_spawn_star_at_y_offset(f32 targetX, f32 targetY, f32 targetZ, f32 offsetY) { + if (!o) { return; } f32 objectPosY = o->oPosY; o->oPosY += offsetY + gDebugInfo[5][0]; spawn_default_star(targetX, targetY, targetZ); @@ -3327,6 +3451,7 @@ void cur_obj_spawn_star_at_y_offset(f32 targetX, f32 targetY, f32 targetZ, f32 o #endif void cur_obj_set_home_once(void) { + if (!o) { return; } if (o->setHome) { return; } o->setHome = TRUE; o->oHomeX = o->oPosX; diff --git a/src/game/rumble_init.c b/src/game/rumble_init.c index bf1d71da..73ffb21f 100644 --- a/src/game/rumble_init.c +++ b/src/game/rumble_init.c @@ -160,7 +160,7 @@ void queue_rumble_data_object(struct Object* object, s16 a0, s16 a1) { } void queue_rumble_data_mario(struct MarioState* m, s16 a0, s16 a1) { - if (m->playerIndex != 0) { return; } + if (!m || m->playerIndex != 0) { return; } queue_rumble_data(a0, a1); } @@ -189,7 +189,7 @@ u8 is_rumble_finished_and_queue_empty(void) { } void reset_rumble_timers(struct MarioState* m) { - if (m->playerIndex != 0) { return; } + if (!m || m->playerIndex != 0) { return; } if (gCurrDemoInput != NULL) { return; @@ -207,7 +207,7 @@ void reset_rumble_timers(struct MarioState* m) { } void reset_rumble_timers_2(struct MarioState* m, s32 a0) { - if (m->playerIndex != 0) { return; } + if (!m || m->playerIndex != 0) { return; } if (gCurrDemoInput != NULL) { return; diff --git a/src/game/save_file.c b/src/game/save_file.c index 8877a3bf..1e874ead 100644 --- a/src/game/save_file.c +++ b/src/game/save_file.c @@ -22,6 +22,11 @@ #define MENU_DATA_MAGIC 0x4849 #define SAVE_FILE_MAGIC 0x4441 +#define INVALID_FILE_INDEX(_fi) ((u32)_fi >= NUM_SAVE_FILES) +#define INVALID_SRC_SLOT(_ss) ((u32)_ss >= 2) +#define INVALID_LEVEL_NUM(_ln) ((u32)_ln >= LEVEL_COUNT) +#define INVALID_COURSE_INDEX(_ci) ((u32)_ci >= COURSE_STAGES_COUNT) + STATIC_ASSERT(sizeof(struct SaveBuffer) == EEPROM_SIZE, "eeprom buffer size must match"); extern struct SaveBuffer gSaveBuffer; @@ -57,10 +62,9 @@ s8 get_level_course_num(s16 levelNum) { return (info ? info->courseNum : COURSE_NONE); } - if (levelNum < 0 || levelNum >= LEVEL_COUNT) { + if (INVALID_LEVEL_NUM(levelNum)) { return COURSE_NONE; } - return gLevelToCourseNumTable[levelNum]; } @@ -155,6 +159,8 @@ static s32 write_eeprom_data(void *buffer, s32 size, const uintptr_t baseofs) { */ static inline s32 write_eeprom_savefile(const u32 file, const u32 slot, const u32 num) { + if (INVALID_FILE_INDEX(file)) { return 0; } + if (INVALID_SRC_SLOT(slot)) { return 0; } // calculate the EEPROM address using the file number and slot const uintptr_t ofs = (u8*)&gSaveBuffer.files[file][slot] - (u8*)&gSaveBuffer; @@ -170,6 +176,7 @@ static inline s32 write_eeprom_savefile(const u32 file, const u32 slot, const u3 } static inline s32 write_eeprom_menudata(const u32 slot, const u32 num) { + if (INVALID_SRC_SLOT(slot)) { return 0; } // calculate the EEPROM address using the slot const uintptr_t ofs = (u8*)&gSaveBuffer.menuData[slot] - (u8*)&gSaveBuffer; @@ -226,7 +233,9 @@ static void add_save_block_signature(void *buffer, s32 size, u16 magic) { * Copy main menu data from one backup slot to the other slot. */ UNUSED static void restore_main_menu_data(s32 srcSlot) { + if (INVALID_SRC_SLOT(srcSlot)) { return; } s32 destSlot = srcSlot ^ 1; + if (INVALID_SRC_SLOT(destSlot)) { return; } // Compute checksum on source data add_save_block_signature(&gSaveBuffer.menuData[srcSlot], sizeof(gSaveBuffer.menuData[srcSlot]), MENU_DATA_MAGIC); @@ -266,10 +275,12 @@ UNUSED static void wipe_main_menu_data(void) { } static s32 get_coin_score_age(s32 fileIndex, s32 courseIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return 0; } return (gSaveBuffer.menuData[0].coinScoreAges[fileIndex] >> (2 * courseIndex)) & 0x3; } static void set_coin_score_age(s32 fileIndex, s32 courseIndex, s32 age) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } s32 mask = 0x3 << (2 * courseIndex); gSaveBuffer.menuData[0].coinScoreAges[fileIndex] &= ~mask; @@ -280,6 +291,7 @@ static void set_coin_score_age(s32 fileIndex, s32 courseIndex, s32 age) { * Mark a coin score for a save file as the newest out of all save files. */ static void touch_coin_score_age(s32 fileIndex, s32 courseIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } s32 i; u32 age; u32 currentAge = get_coin_score_age(fileIndex, courseIndex); @@ -301,6 +313,7 @@ static void touch_coin_score_age(s32 fileIndex, s32 courseIndex) { * Mark all coin scores for a save file as new. */ static void touch_high_score_ages(s32 fileIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } s32 i; for (i = 0; i < 15; i++) { @@ -312,7 +325,10 @@ static void touch_high_score_ages(s32 fileIndex) { * Copy save file data from one backup slot to the other slot. */ UNUSED static void restore_save_file_data(s32 fileIndex, s32 srcSlot) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } + if (INVALID_SRC_SLOT(srcSlot)) { return; } s32 destSlot = srcSlot ^ 1; + if (INVALID_SRC_SLOT(destSlot)) { return; } // Compute checksum on source data add_save_block_signature(&gSaveBuffer.files[fileIndex][srcSlot], @@ -355,6 +371,7 @@ static void save_file_bswap(struct SaveBuffer *buf) { } void save_file_do_save(s32 fileIndex, s8 forceSave) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } if (gNetworkType != NT_SERVER) { if (gNetworkType == NT_CLIENT) { network_send_save_file(fileIndex); return; } else if (gNetworkType == NT_NONE && !forceSave) { return; } @@ -381,8 +398,7 @@ void save_file_do_save(s32 fileIndex, s8 forceSave) { } void save_file_erase(s32 fileIndex) { - if (fileIndex < 0 || fileIndex >= NUM_SAVE_FILES) - return; + if (INVALID_FILE_INDEX(fileIndex)) { return; } touch_high_score_ages(fileIndex); bzero(&gSaveBuffer.files[fileIndex][0], sizeof(gSaveBuffer.files[fileIndex][0])); @@ -404,6 +420,7 @@ void save_file_reload(u8 load_all) { } void save_file_erase_current_backup_save(void) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum-1)) { return; } if (network_is_server()) { bzero(&gSaveBuffer.files[gCurrSaveFileNum-1][1], sizeof(gSaveBuffer.files[gCurrSaveFileNum-1][1])); @@ -415,8 +432,8 @@ void save_file_erase_current_backup_save(void) { //! Needs to be s32 to match on -O2, despite no return value. BAD_RETURN(s32) save_file_copy(s32 srcFileIndex, s32 destFileIndex) { - if (srcFileIndex < 0 || srcFileIndex >= NUM_SAVE_FILES || destFileIndex < 0 || destFileIndex >= NUM_SAVE_FILES) - return; + if (INVALID_FILE_INDEX(srcFileIndex)) { return; } + if (INVALID_FILE_INDEX(destFileIndex)) { return; } touch_high_score_ages(destFileIndex); bcopy(&gSaveBuffer.files[srcFileIndex][0], &gSaveBuffer.files[destFileIndex][0], @@ -486,6 +503,8 @@ void save_file_collect_star_or_key(s16 coinScore, s16 starIndex, u8 fromNetwork) s32 fileIndex = gCurrSaveFileNum - 1; s32 courseIndex = gCurrCourseNum - 1; + if (INVALID_FILE_INDEX(fileIndex)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } s32 starFlag = 1 << starIndex; UNUSED s32 flags = save_file_get_flags(); @@ -497,7 +516,7 @@ void save_file_collect_star_or_key(s16 coinScore, s16 starIndex, u8 fromNetwork) gGotFileCoinHiScore = FALSE; } - if (courseIndex >= 0 && courseIndex < COURSE_STAGES_COUNT && !fromNetwork) { + if (!INVALID_COURSE_INDEX(courseIndex) && !fromNetwork) { //! Compares the coin score as a 16 bit value, but only writes the 8 bit // truncation. This can allow a high score to decrease. @@ -539,6 +558,7 @@ void save_file_collect_star_or_key(s16 coinScore, s16 starIndex, u8 fromNetwork) } s32 save_file_exists(s32 fileIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return 0; } return (gSaveBuffer.files[fileIndex][0].flags & SAVE_FLAG_FILE_EXISTS) != 0; } @@ -569,6 +589,7 @@ u32 save_file_get_max_coin_score(s32 courseIndex) { } s32 save_file_get_course_star_count(s32 fileIndex, s32 courseIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return 0; } s32 i; s32 count = 0; u8 flag = 1; @@ -583,8 +604,12 @@ s32 save_file_get_course_star_count(s32 fileIndex, s32 courseIndex) { } s32 save_file_get_total_star_count(s32 fileIndex, s32 minCourse, s32 maxCourse) { + if (INVALID_FILE_INDEX(fileIndex)) { return 02; } s32 count = 0; + if (minCourse < -1) { minCourse = -1; } + if (maxCourse >= COURSE_STAGES_COUNT) { maxCourse = COURSE_STAGES_COUNT; } + // Get standard course star count. for (; minCourse <= maxCourse; minCourse++) { count += save_file_get_course_star_count(fileIndex, minCourse); @@ -595,6 +620,8 @@ s32 save_file_get_total_star_count(s32 fileIndex, s32 minCourse, s32 maxCourse) } void save_file_set_flags(u32 flags) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } // prevent saving any flag that would make the player hatless on level transition flags &= ~(SAVE_FLAG_CAP_ON_GROUND | SAVE_FLAG_CAP_ON_KLEPTO | SAVE_FLAG_CAP_ON_MR_BLIZZARD | SAVE_FLAG_CAP_ON_UKIKI); if (flags == 0) { return; } @@ -605,12 +632,16 @@ void save_file_set_flags(u32 flags) { } void save_file_clear_flags(u32 flags) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].flags &= ~flags; gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].flags |= SAVE_FLAG_FILE_EXISTS; gSaveFileModified = TRUE; } u32 save_file_get_flags(void) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return 0; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return 0; } if (gCurrCreditsEntry != NULL || gCurrDemoInput != NULL) { return 0; } @@ -622,11 +653,13 @@ u32 save_file_get_flags(void) { * If course is -1, return the bitset of obtained castle secret stars. */ u32 save_file_get_star_flags(s32 fileIndex, s32 courseIndex) { - u32 starFlags; + if (INVALID_FILE_INDEX(fileIndex)) { return 0; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return 0; } + u32 starFlags = 0; if (courseIndex == -1) { starFlags = SAVE_FLAG_TO_STAR_FLAG(gSaveBuffer.files[fileIndex][gSaveFileUsingBackupSlot].flags); - } else { + } else if (!INVALID_COURSE_INDEX(courseIndex)) { starFlags = gSaveBuffer.files[fileIndex][gSaveFileUsingBackupSlot].courseStars[courseIndex] & 0x7F; } @@ -638,10 +671,12 @@ u32 save_file_get_star_flags(s32 fileIndex, s32 courseIndex) { * If course is -1, add to the bitset of obtained castle secret stars. */ void save_file_set_star_flags(s32 fileIndex, s32 courseIndex, u32 starFlags) { + if (INVALID_FILE_INDEX(fileIndex)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } if (courseIndex == -1) { gSaveBuffer.files[fileIndex][gSaveFileUsingBackupSlot].flags |= STAR_FLAG_TO_SAVE_FLAG(starFlags); network_send_save_set_flag(fileIndex, courseIndex, 0, (STAR_FLAG_TO_SAVE_FLAG(starFlags) | SAVE_FLAG_FILE_EXISTS)); - } else { + } else if (!INVALID_COURSE_INDEX(courseIndex)) { gSaveBuffer.files[fileIndex][gSaveFileUsingBackupSlot].courseStars[courseIndex] |= starFlags; network_send_save_set_flag(fileIndex, courseIndex, starFlags, SAVE_FLAG_FILE_EXISTS); } @@ -651,6 +686,9 @@ void save_file_set_star_flags(s32 fileIndex, s32 courseIndex, u32 starFlags) { } s32 save_file_get_course_coin_score(s32 fileIndex, s32 courseIndex) { + if (INVALID_FILE_INDEX(fileIndex)) { return 0; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return 0; } + if (INVALID_COURSE_INDEX(courseIndex)) { return 0; } return gSaveBuffer.files[fileIndex][gSaveFileUsingBackupSlot].courseCoinScores[courseIndex]; } @@ -658,6 +696,9 @@ s32 save_file_get_course_coin_score(s32 fileIndex, s32 courseIndex) { * Return TRUE if the cannon is unlocked in the current course. */ s32 save_file_is_cannon_unlocked(void) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return 0; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return 0; } + if (INVALID_COURSE_INDEX(gCurrCourseNum)) { return 0; } return (gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].courseStars[gCurrCourseNum] & 0x80) != 0; } @@ -665,6 +706,9 @@ s32 save_file_is_cannon_unlocked(void) { * Sets the cannon status to unlocked in the current course. */ void save_file_set_cannon_unlocked(void) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } + if (INVALID_COURSE_INDEX(gCurrCourseNum)) { return; } gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].courseStars[gCurrCourseNum] |= 0x80; gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].flags |= SAVE_FLAG_FILE_EXISTS; gSaveFileModified = TRUE; @@ -672,6 +716,8 @@ void save_file_set_cannon_unlocked(void) { } void save_file_set_cap_pos(s16 x, s16 y, s16 z) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } struct SaveFile *saveFile = &gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot]; saveFile->capLevel = gCurrLevelNum; @@ -681,6 +727,8 @@ void save_file_set_cap_pos(s16 x, s16 y, s16 z) { } s32 save_file_get_cap_pos(Vec3s capPos) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return 0; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return 0; } struct SaveFile *saveFile = &gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot]; s32 flags = save_file_get_flags(); @@ -705,6 +753,8 @@ u16 save_file_get_sound_mode(void) { } void save_file_move_cap_to_default_location(void) { + if (INVALID_FILE_INDEX(gCurrSaveFileNum - 1)) { return; } + if (INVALID_SRC_SLOT(gSaveFileUsingBackupSlot)) { return; } if (save_file_get_flags() & SAVE_FLAG_CAP_ON_GROUND || gMarioStates[0].cap == SAVE_FLAG_CAP_ON_GROUND) { switch (gSaveBuffer.files[gCurrSaveFileNum - 1][gSaveFileUsingBackupSlot].capLevel) { case LEVEL_SSL: diff --git a/src/game/skybox.c b/src/game/skybox.c index 90f371df..a3b5227d 100644 --- a/src/game/skybox.c +++ b/src/game/skybox.c @@ -241,7 +241,7 @@ void draw_skybox_tile_grid(Gfx **dlist, s8 background, s8 player, s8 colorIndex) if (tileIndex < 0) { tileIndex = 0; } if (tileIndex > 79) { tileIndex = 79; } Texture* texture = NULL; - if (background >= 10) { + if (background < 0 || background >= 10) { texture = gCustomSkyboxPtrList[tileIndex]; } else { texture = (Texture*)(*(SkyboxTexture *) segmented_to_virtual(sSkyboxTextures[background]))[tileIndex]; diff --git a/src/game/spawn_sound.c b/src/game/spawn_sound.c index 9e4bced4..9f05f5ed 100644 --- a/src/game/spawn_sound.c +++ b/src/game/spawn_sound.c @@ -16,6 +16,7 @@ * objects. (King Bobomb, Bowser, King Whomp) */ void exec_anim_sound_state(struct SoundState *soundStates, u16 maxSoundStates) { + if (!gCurrentObject) { return; } s32 stateIdx = gCurrentObject->oSoundStateID; if (stateIdx >= maxSoundStates) { return; } @@ -62,12 +63,14 @@ void create_sound_spawner(s32 soundMagic) { * separate left/right leg functions that went unused. */ void cur_obj_play_sound_1(s32 soundMagic) { + if (!gCurrentObject) { return; } if (gCurrentObject->header.gfx.node.flags & GRAPH_RENDER_ACTIVE) { play_sound(soundMagic, gCurrentObject->header.gfx.cameraToObject); } } void cur_obj_play_sound_2(s32 soundMagic) { + if (!gCurrentObject) { return; } if (gCurrentObject->header.gfx.node.flags & GRAPH_RENDER_ACTIVE) { play_sound(soundMagic, gCurrentObject->header.gfx.cameraToObject); diff --git a/src/pc/lua/utils/smlua_misc_utils.c b/src/pc/lua/utils/smlua_misc_utils.c index 5cfb7f6e..3e05f020 100644 --- a/src/pc/lua/utils/smlua_misc_utils.c +++ b/src/pc/lua/utils/smlua_misc_utils.c @@ -352,16 +352,19 @@ u32 allocate_mario_action(u32 actFlags) { /// f32 get_hand_foot_pos_x(struct MarioState* m, u8 index) { + if (!m) { return 0; } if (index >= 4) { index = 0; } return m->marioBodyState->handFootPos[index][0]; } f32 get_hand_foot_pos_y(struct MarioState* m, u8 index) { + if (!m) { return 0; } if (index >= 4) { index = 0; } return m->marioBodyState->handFootPos[index][1]; } f32 get_hand_foot_pos_z(struct MarioState* m, u8 index) { + if (!m) { return 0; } if (index >= 4) { index = 0; } return m->marioBodyState->handFootPos[index][2]; } diff --git a/src/pc/lua/utils/smlua_obj_utils.c b/src/pc/lua/utils/smlua_obj_utils.c index 9371ab91..385ec14f 100644 --- a/src/pc/lua/utils/smlua_obj_utils.c +++ b/src/pc/lua/utils/smlua_obj_utils.c @@ -87,11 +87,13 @@ struct Object* spawn_non_sync_object(enum BehaviorId behaviorId, enum ModelExten } s32 obj_has_behavior_id(struct Object *o, enum BehaviorId behaviorId) { + if (!o) { return 0; } const BehaviorScript *behavior = get_behavior_from_id(behaviorId); return o->behavior == smlua_override_behavior(behavior); } s32 obj_has_model_extended(struct Object *o, enum ModelExtendedId modelId) { + if (!o) { return 0; } u16 slot = smlua_model_util_load(modelId); if (slot >= MAX_LOADED_GRAPH_NODES) { return false; } struct GraphNode *model = gLoadedGraphNodes[slot]; @@ -99,6 +101,7 @@ s32 obj_has_model_extended(struct Object *o, enum ModelExtendedId modelId) { } void obj_set_model_extended(struct Object *o, enum ModelExtendedId modelId) { + if (!o) { return; } obj_set_model(o, smlua_model_util_load(modelId)); } @@ -138,6 +141,7 @@ struct Object *obj_get_first_with_behavior_id(enum BehaviorId behaviorId) { } struct Object *obj_get_first_with_behavior_id_and_field_s32(enum BehaviorId behaviorId, s32 fieldIndex, s32 value) { + if (fieldIndex < 0 || fieldIndex >= 0x50) { return NULL; } const BehaviorScript* behavior = get_behavior_from_id(behaviorId); u32 sanityDepth = 0; behavior = smlua_override_behavior(behavior); @@ -154,6 +158,7 @@ struct Object *obj_get_first_with_behavior_id_and_field_s32(enum BehaviorId beha } struct Object *obj_get_first_with_behavior_id_and_field_f32(enum BehaviorId behaviorId, s32 fieldIndex, f32 value) { + if (fieldIndex < 0 || fieldIndex >= 0x50) { return NULL; } const BehaviorScript* behavior = get_behavior_from_id(behaviorId); behavior = smlua_override_behavior(behavior); if (behavior) { @@ -227,6 +232,7 @@ struct Object *obj_get_next_with_same_behavior_id(struct Object *o) { } struct Object *obj_get_next_with_same_behavior_id_and_field_s32(struct Object *o, s32 fieldIndex, s32 value) { + if (fieldIndex < 0 || fieldIndex >= 0x50) { return NULL; } if (o) { for (struct Object *obj = obj_get_next(o); obj != NULL; obj = obj_get_next(obj)) { if (obj->behavior == o->behavior && obj->activeFlags != ACTIVE_FLAG_DEACTIVATED && obj->OBJECT_FIELD_S32(fieldIndex) == value) { @@ -238,6 +244,7 @@ struct Object *obj_get_next_with_same_behavior_id_and_field_s32(struct Object *o } struct Object *obj_get_next_with_same_behavior_id_and_field_f32(struct Object *o, s32 fieldIndex, f32 value) { + if (fieldIndex < 0 || fieldIndex >= 0x50) { return NULL; } if (o) { for (struct Object *obj = obj_get_next(o); obj != NULL; obj = obj_get_next(obj)) { if (obj->behavior == o->behavior && obj->activeFlags != ACTIVE_FLAG_DEACTIVATED && obj->OBJECT_FIELD_F32(fieldIndex) == value) { @@ -401,6 +408,7 @@ void obj_move_xyz(struct Object *o, f32 dx, f32 dy, f32 dz) { void set_whirlpools(f32 x, f32 y, f32 z, s16 strength, s16 area, s32 index) { static struct Whirlpool whirlpool; + if (index < 0 || index >= 2) { return; } gAreas[area].whirlpools[index] = &whirlpool; gAreas[area].whirlpools[index]->pos[0] = x; @@ -411,6 +419,7 @@ void set_whirlpools(f32 x, f32 y, f32 z, s16 strength, s16 area, s32 index) { #ifdef DEVELOPMENT void obj_randomize(struct Object* o) { + if (!o) { return; } for (int i = 0; i < 80; i++) { if (rand() % 10 < 5) { o->rawData.asU32[i] = rand() % 10;