[Fix] Fixed double free.
This commit is contained in:
parent
74719f2cbd
commit
1411001943
10
src/input.c
10
src/input.c
@ -74,13 +74,13 @@ void input_setDefault(void) {
|
|||||||
input_setKeybind("target_hostile", KEYBIND_KEYBOARD, SDLK_r, KMOD_NONE, 0);
|
input_setKeybind("target_hostile", KEYBIND_KEYBOARD, SDLK_r, KMOD_NONE, 0);
|
||||||
/* Combat. */
|
/* Combat. */
|
||||||
input_setKeybind("primary", KEYBIND_KEYBOARD, SDLK_SPACE, KMOD_NONE, 0);
|
input_setKeybind("primary", KEYBIND_KEYBOARD, SDLK_SPACE, KMOD_NONE, 0);
|
||||||
input_setKeybind("face", KEYBIND_KEYBOARD, SDLK_1, KMOD_NONE, 0);
|
input_setKeybind("face", KEYBIND_KEYBOARD, SDLK_f, KMOD_NONE, 0);
|
||||||
input_setKeybind("board", KEYBIND_KEYBOARD, SDLK_b, KMOD_NONE, 0);
|
input_setKeybind("board", KEYBIND_KEYBOARD, SDLK_b, KMOD_NONE, 0);
|
||||||
/* Escorts. */
|
/* Escorts. */
|
||||||
input_setKeybind("e_attack", KEYBIND_KEYBOARD, SDLK_f, KMOD_NONE, 0);
|
input_setKeybind("e_attack", KEYBIND_KEYBOARD, SDLK_1, KMOD_NONE, 0);
|
||||||
input_setKeybind("e_hold", KEYBIND_KEYBOARD, SDLK_g, KMOD_NONE, 0);
|
input_setKeybind("e_hold", KEYBIND_KEYBOARD, SDLK_2, KMOD_NONE, 0);
|
||||||
input_setKeybind("e_return", KEYBIND_KEYBOARD, SDLK_r, KMOD_NONE, 0);
|
input_setKeybind("e_return", KEYBIND_KEYBOARD, SDLK_3, KMOD_NONE, 0);
|
||||||
input_setKeybind("e_clear", KEYBIND_KEYBOARD, SDLK_c, KMOD_NONE, 0);
|
input_setKeybind("e_clear", KEYBIND_KEYBOARD, SDLK_4, KMOD_NONE, 0);
|
||||||
|
|
||||||
|
|
||||||
/* Secondary weapon. */
|
/* Secondary weapon. */
|
||||||
|
@ -236,7 +236,6 @@ int main(int argc, char** argv) {
|
|||||||
player_cleanup(); /* Cleans up the player stuff. */
|
player_cleanup(); /* Cleans up the player stuff. */
|
||||||
gui_free(); /* Free up the gui. */
|
gui_free(); /* Free up the gui. */
|
||||||
weapon_exit(); /* Destroy all active weapons. */
|
weapon_exit(); /* Destroy all active weapons. */
|
||||||
space_exit(); /* Clean up the universe!!! */
|
|
||||||
pilots_free(); /* Free the pilots, they where locked up D: */
|
pilots_free(); /* Free the pilots, they where locked up D: */
|
||||||
space_exit(); /* Cleans up the universe itself. */
|
space_exit(); /* Cleans up the universe itself. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user