Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Jul 25, 2024
1 parent d6093e0 commit 430b4d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ static void ViewLump(struct directory *dir, struct directory_entry *ent)

static void PerformView(void)
{
struct directory *new_dir;
struct directory_entry *ent;

ent = B_DirectoryPaneEntry(active_pane);
Expand All @@ -1017,8 +1018,7 @@ static void PerformView(void)
case FILE_TYPE_DIR:
case FILE_TYPE_WAD:
// Change directory?
struct directory *new_dir =
VFS_OpenDirByEntry(active_pane->dir, ent);
new_dir = VFS_OpenDirByEntry(active_pane->dir, ent);
if (new_dir == NULL) {
UI_MessageBox("Error when opening '%s'.", ent->name);
return;
Expand Down

0 comments on commit 430b4d6

Please sign in to comment.