Planimeter / game-engine-2d

Planimeter Game Engine 2D - LÖVE-based game engine for Lua
https://github.com/Planimeter/game-engine-2d/wiki
MIT License
736 stars 74 forks source link

Fixed table.print not tostring-ing keys #108

Closed GamerGambit closed 1 year ago

GamerGambit commented 3 years ago

Quick fix to prevent table.print crashing with key types that are not implicitly convertible to strings (e.g. functions).

Not actually sure how good this PR actually is since it works with strings and numbers and its arguably bad design to use anything else for keys, but it might be good "future-proofing"?