NickMcConnell / NarSil

Unofficial rewrite of Sil 1.3.0
10 stars 2 forks source link

Port Vanilla Angband's changes to parsing for monster_spell.txt #575

Closed backwardsEric closed 5 days ago

backwardsEric commented 5 days ago

Avoid memory leaks in cases of parser errors or multiple dice lines for the same spell. Use PARSE_ERROR_MISSING_RECORD_HEADER for cases where other lines appear before any spell name rather than a mixture of PARSE_ERROR_MISSING_RECORD_HEADER and assertions.