Skip to content

neo_restart_this should not leak edicts #1580

@Rainyan

Description

@Rainyan

Build Info

f50a0d7

Description

When using neo_restart_this to restart the map, edicts are not correctly cleaned up and/or reused. This causes edict starvation and ultimately a game crash when repeated often enough for a sufficiently complex map.

To Reproduce

  • Load map ntre_terminal_jgr
  • Have bots enabled to fill both teams with players
  • Join a team to start the match
  • Use neo_restart_this 1 multiple times in a row

Expected behavior

Game does not crash.

Actual behavior

Game crashes with a message:

---------------------------
Engine Error
---------------------------
ED_Alloc: no free edicts
---------------------------
OK   
---------------------------

Operating System

  • Windows
  • Linux

Version/Distro

11

Build's compiler

MSVC 19.44.35222.0

Additional context and Screenshots

This bug was introduced by 1c47aa8 (oops)

Metadata

Metadata

Assignees

Labels

Bug ReportBug Reports made through the "Report Issue" interface in GitHub.

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions