-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertion failed in equipment-market.lua:91 #5883
Labels
Comments
Note that if you sell an additional missile first, the exception does not raises |
assert(player:AddEquip(e, 1, slot) == 1) Looks like the second argument (count) is hard coded to 1, (both in RemoveEqupment and AddEquipment), might be relevant. I'll have to do some pondering. Edit: I believe the |
That's why it's useful to use named constants instead of magic numbers 😉 |
24 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Observed behaviour
Stack trace when buying a shield
Note that I bought 12 missiles and had to sell one to have enough room to equip a shield.
Since a missile is 0.5 tons, maybe the exception is caused by a fractional number or something?
Expected behaviour
No stack
Steps to reproduce
Reproducible always
My pioneer version (and OS):
20240314 (Linux)
My output.txt (required) and game save (optional, but recommended)
output.txt
lolo-stack.gz
The text was updated successfully, but these errors were encountered: