Skip to content

Commit b90f9d6

Browse files
committed
Engine: fixed pathfinder can be missing after RunAGSGame()
1 parent 43a2573 commit b90f9d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/ac/room.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@ void load_new_room(int newnum, CharacterInfo*forchar) {
886886
update_all_viewcams_with_newroom();
887887
play.UpdateRoomCameras(); // update auto tracking
888888
}
889+
890+
init_room_pathfinder();
889891
init_room_drawdata();
890892

891893
set_our_eip(212);
@@ -987,8 +989,6 @@ void first_room_initialization() {
987989
// Reset background frame state
988990
play.bg_frame = 0;
989991
play.bg_frame_locked = (thisroom.Options.Flags & kRoomFlag_BkgFrameLocked) != 0;
990-
991-
init_room_pathfinder();
992992
}
993993

994994
void check_new_room() {

0 commit comments

Comments
 (0)