Skip to content

Commit e3e98d6

Browse files
committed
SWC: Fix crash when opening a file dialog with no results
Introduced: cc38fbe
1 parent ae2258c commit e3e98d6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

docs/Changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ based on HamSandwich.
5050

5151
### HamSandwich (since last release)
5252

53-
Nothing!
53+
* Fix crash when changing too many tiles or items with the "change touching" mode.
54+
* Fix some bugs with worlds using more than 800 tiles.
55+
* Fix crash when opening a file dialog with no results.
5456

5557
### v9.6 (2025-08-02) - [Steam](https://store.steampowered.com/news/app/2547330/view/525350155171399000)
5658

source/supreme/filedialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ static void ObtainFilenames(const char *dir, const char *ext)
4747

4848
static void SortFilenames(void)
4949
{
50+
if (fnames.empty())
51+
{
52+
return;
53+
}
54+
5055
bool flip = true;
5156
while(flip)
5257
{

0 commit comments

Comments
 (0)