Jump to content

A spelling mistake in wolfgang.lua


Recommended Posts

Nice catch but it doesn't matter.

Spoiler

That's because this function is always called with a truthy `val` argument. `isnt.bell_percent` is then never evaluated due to short circuit evaluation. If it was evaluated it would cause an indexing a nil value crash.

If you see something like this in the future and it actually causes a bug or cash in game, you can report it on the bug on the bug tracker!

5 hours ago, Friendly Grass said:

Nice catch but it doesn't matter.

  Hide contents

That's because this function is always called with a truthy `val` argument. `isnt.bell_percent` is then never evaluated due to short circuit evaluation. If it was evaluated it would cause an indexing a nil value crash.

If you see something like this in the future and it actually causes a bug or cash in game, you can report it on the bug on the bug tracker!

what if it's used in the future with val being nil? Probably still worth reporting

  • Developer

Corrected. Thank you for the report! For more bug reports could I ask you to add them on bug tracker at https://forums.kleientertainment.com/klei-bug-tracker/dont-starve-together/ Discussion forums are harder to see these.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...