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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...