Fix bug with entity-map not grabbing the correct entity when

passed an entity
This commit is contained in:
TakeV 2024-05-26 23:15:20 -04:00
parent f4d7db2afc
commit da3d735b54
Signed by: TakeV
GPG key ID: A64F41345C7400AF

View file

@ -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))))