mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
game-strings: fix crash with -l/--level
This commit is contained in:
parent
88f41c5a75
commit
f27d0435a9
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ static void M_ApplyLayer(
|
|||
}
|
||||
}
|
||||
|
||||
if (gs_level_table != nullptr) {
|
||||
if (gs_level_table != nullptr && gs_level_table->count != 0) {
|
||||
ASSERT(level->num >= 0);
|
||||
ASSERT(level->num < gs_level_table->count);
|
||||
M_Apply(&gs_level_table->entries[level->num].table);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue