There are sometimes segfaults on startup
Sometimes when we startup there is instantly a segfault that close the game, and I had once the textures severely bugged on startup, and then it segfault'ed. It may be a textures initialization issue.
Edit : I caught one using GDB, here's the output :
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeceb3700 (LWP 7096)]
Thread 1 "factorywars" received signal SIGSEGV, Segmentation fault.
0x00007ffff7b1d108 in ?? () from /usr/lib/libSDL2-2.0.so.0
(gdb) bt full
#0 0x00007ffff7b1d108 in ?? () from /usr/lib/libSDL2-2.0.so.0
No symbol table info available.
#1 (closed) 0x000000000040252c in blit(int, int, int, int, SDL_Texture*) ()
No symbol table info available.
#2 0x0000000000406a1b in display_background(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, SDL_Texture**, int, int) ()
No symbol table info available.
#3 0x000000000040274b in run_gui() ()
No symbol table info available.
#4 (closed) 0x0000000000401d6a in main ()
No symbol table info available.
Edit : it seems to have disappeared. Not sure how, but the important is that we don't have these segfaults anymore.