jgabaut / helapordo

A roguelike terminal game, using ncurses.
https://jgabaut.github.io/helapordo-docs
GNU General Public License v3.0
15 stars 0 forks source link

[BUG] [Experimental] Assertion fail when saving an equip with N perks #79

Closed jgabaut closed 3 months ago

jgabaut commented 3 months ago

Describe the bug

src/ser/ser_core.c:314: _Bool ser_Equip(Equip *, SerEquip *): assertion "ser->perksCount < EQUIPPERKSMAX" failed

To Reproduce Steps to reproduce the behavior:

  1. Run with -X
  2. Save with an Equip in your bag boasting EQUIPPERKSMAX perks
  3. Crash

Expected behavior ser->perksCount <= EQUIPPERKSMAX, maybe? Will check.