Open gesior opened 3 weeks ago
yes (not always)
1.7 (Master)
all (listed below)
No response
Going 'sleep' MAY crash server
I get report from modified TFS. I cannot run 12+ client on Linux. Can someone confirm it?
This: https://github.com/otland/forgottenserver/blob/master/src/actions.cpp#L337 sets bedItem in Player to BedItem*: https://github.com/otland/forgottenserver/blob/master/src/player.h#L226 but does not 'increase pointer' [old TFS] (or use Shared Pointer).
bedItem
Player
BedItem*
If it opens Dialog window and in meanwhile someone 'Wrap' BedItem (remove ite), it will crash, when someone close Dialog around that line: https://github.com/otland/forgottenserver/blob/master/src/game.cpp#L5655
BedItem
Dialog
Not crash.
By submitting this bug issue, you agree to the following.
Does this bug crash tfs?
yes (not always)
Server Version
1.7 (Master)
Operation System
all (listed below)
OS Description
No response
Bug description
Going 'sleep' MAY crash server
Possible Pull Requests which are to blame
No response
Steps to reproduce
Actual Behavior
I get report from modified TFS. I cannot run 12+ client on Linux. Can someone confirm it?
This: https://github.com/otland/forgottenserver/blob/master/src/actions.cpp#L337 sets
bedItem
inPlayer
toBedItem*
: https://github.com/otland/forgottenserver/blob/master/src/player.h#L226 but does not 'increase pointer' [old TFS] (or use Shared Pointer).If it opens Dialog window and in meanwhile someone 'Wrap'
BedItem
(remove ite), it will crash, when someone closeDialog
around that line: https://github.com/otland/forgottenserver/blob/master/src/game.cpp#L5655Expected Behavior
Not crash.
Backtrace
No response