Skip to content

UNDO - Index Out of Range Error #1582

@KVonGit

Description

@KVonGit

If you take one turn, then UNDO twice, all is well.

You are in a Room.
You can see a frob.
You can go north.

> take frob
You pick it up.

> undo
Undo: take frob

> undo
Nothing to undo!

> undo
Nothing to undo!

...but, if you take two turns, then UNDO thrice:

You are in a Room.
You can see a frob.
You can go north.

> take frob
You pick it up.

> north

You are in a Second Room.
You can go south.

> undo
Undo: north

> undo
Undo: take frob

> undo
Undo: take frob
Error running script: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

I just learned about this, but it has been a known issue since 2020:

https://archive.textadventures.co.uk/forum/quest/topic/gxxws68qyko6hqwkf9q2ua

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions