Fix bug with entity-map not grabbing the correct entity when
passed an entity
This commit is contained in:
parent
f4d7db2afc
commit
da3d735b54
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
"Returns the entity id of an entity, or the value itself if it is
|
||||
and integer already. Returns false if passed an invalid entity."
|
||||
(cond
|
||||
((game-entity? entity)) (game-entity-id entity)
|
||||
((game-entity? entity) (game-entity-id entity))
|
||||
((integer? entity) entity)
|
||||
(else (error "Invalid entity-key parameter" entity))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue