Skip to content

ArgumentOutOfRangeException: Index was out of range #2

Description

@Nejcc

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at :0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at :0)
Map.Remove (LivingEntity e, Coord coord) (at Assets/Scripts/Environment/Map.cs:138)
Map.Move (LivingEntity e, Coord fromCoord, Coord toCoord) (at Assets/Scripts/Environment/Map.cs:148)
Environment.RegisterMove (LivingEntity entity, Coord from, Coord to) (at Assets/Scripts/Environment/Environment.cs:63)
Animal.AnimateMove () (at Assets/Scripts/Behaviour/Animal.cs:221)
Animal.Update () (at Assets/Scripts/Behaviour/Animal.cs:76)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions