Skip to content

Fix b417099: sample data is allowed to be empty#7

Merged
PeterN merged 1 commit intoOpenTTD:masterfrom
PeterN:fix-empty-sample-data
Apr 15, 2026
Merged

Fix b417099: sample data is allowed to be empty#7
PeterN merged 1 commit intoOpenTTD:masterfrom
PeterN:fix-empty-sample-data

Conversation

@PeterN
Copy link
Copy Markdown
Member

@PeterN PeterN commented Apr 14, 2026

b417099 changed from using raw C-style manual memory allocation to vectors, but unfortunately converted a null pointer check into a zero-size check.

Empty samples are actually expected (both sample.cat and opensfx.cat contain empty samples), so this check can simply be removed.

@PeterN PeterN merged commit 55f1c88 into OpenTTD:master Apr 15, 2026
7 checks passed
@PeterN PeterN deleted the fix-empty-sample-data branch April 15, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants