Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

RFC: EMI/GRIM: Fix segfault when font isn't specified. #961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoseJX
Copy link
Contributor

@JoseJX JoseJX commented Jul 14, 2014

I don't think this segfault is reachable from the game scripts, but I noticed it while working on font issues.

@klusark
Copy link
Member

klusark commented Jul 14, 2014

If the game scripts never call it it should probably be an error, and not try to recover as it will make it seem like it's functionality the game needs.

@JoseJX
Copy link
Contributor Author

JoseJX commented Jul 14, 2014

If you call MakeTextObject from the retail game without specifying a font, it does work though, here it just segfaults. I suppose it's sort of the same issue for the default color (white), but again I don't think the scripts call it without setting that variable either. I guess the question is whether to reproduce the original behavior, or just write what the game requires.

@aquadran aquadran changed the title EMI/GRIM: Fix segfault when font isn't specified. RFC: EMI/GRIM: Fix segfault when font isn't specified. Sep 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

3 participants