fix: clear out graph editor upon player disconnect
This commit is contained in:
parent
bac3fbc203
commit
81a308de21
1 changed files with 5 additions and 0 deletions
|
|
@ -239,6 +239,11 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) {
|
|||
}
|
||||
}
|
||||
|
||||
// clear the graph editor upon disconnect
|
||||
if (ent == graph.getEditor ()) {
|
||||
graph.setEditor (nullptr);
|
||||
}
|
||||
|
||||
if (game.is (GameFlags::Metamod)) {
|
||||
RETURN_META (MRES_IGNORED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue