curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1412] [Mantis 1448] Supplying a name to a topic crashes the story #672

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : Juhana

Description :

Naming a topic with (called ...) causes the story to crash with a "Glulxe fatal error: Memory access out of range" error when trying to print it.

Steps to reproduce :

There is a room.

After answering that some text (called the sound):
    say "The words '[sound]' echo in the room."

Test me with "say hello".

Additional information :

Forum thread: http://www.intfiction.org/forum/viewtopic.php?f=7&t=17003&p=84102#p84097

imported from: [Mantis 1448] Supplying a name to a topic crashes the story
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:58:16+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by graham :
Fixed. This was a piece of bad kind checking, because the parameter here, "sound", is a topic and not a text. That means you now need to correct "some text" to "a topic" to get the first line to compile, and then the say line rightly objects that topics can't be said.