Skip to content
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

TINSEL: Increase maximum number of objects #1064

Merged
merged 1 commit into from Nov 20, 2017

Conversation

csnover
Copy link
Member

@csnover csnover commented Nov 20, 2017

This needs to be at least 374 to avoid crashes in the in-game
save/load dialogues with save games using the maximum 40 letters
per save game, so just round up to the next power of two (which
increases memory usage by a whopping ~20KiB) to give more than
enough space for long save game names.

Fixes Trac#6748.

Pretty sure this is fine, save code does not seem to care
about this object list and some quick save/load tests seemed
to work fine, but since I am not familiar with this engine it
seemed like a good idea to PR the change even though it is
otherwise trivial.

This needs to be at least 374 to avoid crashes in the in-game
save/load dialogues with save games using the maximum 40 letters
per save game, so just round up to the next power of two (which
increases memory usage by a whopping ~20KiB) to give more than
enough space for long save game names.

Fixes Trac#6748.
@dreammaster
Copy link
Member

Agreed. This looks good to me, so merging in.

@dreammaster dreammaster merged commit 097523d into scummvm:master Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants