Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix -levelstat #130

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,8 @@
levelString, (secretexit ? "s" : ""),
levelTimeString, totalTimeString, playerKills, totalkills,
playerItems, totalitems, playerSecrets, totalsecret);

fflush(fstream); // [Nugget]
}

// [Nugget] Custom Skill
Expand Down Expand Up @@ -3784,7 +3786,7 @@
{
while (rewind_depth <= keyframe_index)
{
Z_Free(keyframe_list_head->frame);

Check warning on line 3789 in src/g_game.c

View workflow job for this annotation

GitHub Actions / Clang-Tidy

src/g_game.c:3789:12 [clang-analyzer-core.NullDereference]

Access to field 'frame' results in a dereference of a null pointer (loaded from variable 'keyframe_list_head')

if (keyframe_list_head->next)
{
Expand Down