Jump to content

boatphysics add more ~=nil checks

  • Fixed

[00:54:20]: [string "scripts/components/boatphysics.lua"]:123: attempt to index field 'sounds' (a nil value)
I hit a mod-object with a boat and this was the crash report (the component is the one from the game). Of course modders should make sure that the objects they add are complete, but that it should include a "sounds" table is not that obvious... So I think you should add a inst.sounds~=nil check there and simply play no sounds if none is defined.

Steps to Reproduce

see "scripts/components/boatphysics.lua"]:123 and add a ~=nil check in front of it.

  • Like 1

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...