ddnet/src
Robert Müller 997af452d0 Fix crash when cutting a demo opened from command line
When playing a demo without opening the demo menu first, i.e. from command line argument or with `play` command from the main menu, clicking the demo slice button crashes the game, as the code tries to use the filename of the currently selected demo while there is no demo selected, i.e. `m_DemolistSelectedIndex == -1`.
Also, when using the play command after opening the demo menu, the initial filename selected for cutting was incorrectly set to the currently selected demo.

This is fixed by getting the name of the current demo file from the demo player instead, when cutting a demo.
Though the cut demo will be saved to the last demo folder selected (or the demos directory) instead of being saved to the same directory as the original demo.
2022-10-24 20:14:04 +02:00
..
android Refactor usages of sha256_str 2022-10-15 18:06:45 +02:00
antibot Merge pull request #3961 from fokkonaut/pr-antibot 2021-12-19 19:33:56 +01:00
base Use fegetenv/fesetenv instead of _control87 on Windows 2022-10-23 10:59:53 +02:00
engine Fix IME not being deactivated when editor is closed 2022-10-21 21:31:21 +02:00
game Fix crash when cutting a demo opened from command line 2022-10-24 20:14:04 +02:00
macos Huge variable naming format 2022-07-08 18:01:29 +02:00
mastersrv fix import on mastersrv 2022-10-07 21:32:53 +02:00
steam Huge variable naming format 2022-07-08 18:01:29 +02:00
test Add tests for too small/large sha256_str and md5_str buffers 2022-10-15 18:18:18 +02:00
tools Use str_copy instead of snprintf to copy strings 2022-10-20 20:56:58 +02:00