sakura57 / so4

Spaced Out 4, an open-source 2D space shooter game
GNU General Public License v2.0
1 stars 0 forks source link

Add more in-depth error checking to Lua functions #50

Open sakura57 opened 4 years ago

sakura57 commented 4 years ago

Many Lua functions (for example, sgs_object_get_name()) attempt to acquire instances without checking first to see if those instances are allocated. We should add more sophisticated error checking to prevent crashes in the event that a script happens to use the wrong instance ID in a script function call.