[Bug]: Condition light with light level < 1 and >=0 will crash server #4782
Labels
bug
An issue describing unexpected behavior of code
needs-confirmation
not confirmed by a developer yet
By submitting this bug issue, you agree to the following.
Does this bug crash tfs?
yes
Server Version
1.7 (Master) 1.4.2 and others
Operation System
Windows, Ubuntu 20.04, Ubuntu 22.04
Bug description
Server crashes with condition light that has level set to 0
Possible Pull Requests which are to blame
No response
Steps to reproduce
Code to reproduce the issue:
It will crash at:
forgottenserver/src/condition.cpp
Line 1744 in 416df19
because of division by 0
Actual Behavior
Server crashes
Expected Behavior
Server do not crash ^^
maybe warning on setting condition param?
Backtrace
No response
The text was updated successfully, but these errors were encountered: