Hey I need help badly
My game was working, IS working without the changes to the OpenDoor CPP and H, but the moment I add the changes with the iterating of the actors my game compiles alright but it crashes immidiately after starting.
Here’s the whole error report:
Fatal error!
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000002c0
0x0000000097B1CCD9 BuildingEscape.exe!AActor::GetOverlappingActors()
0x0000000097B1C66C BuildingEscape.exe!AActor::GetOverlappingActors()
0x0000000097186A05 BuildingEscape.exe!UOpenDoor::TickComponent() [c:\users\emil\documents\game 1\buildingescape\source\buildingescape\opendoor.cpp:39]
0x000000009797393B BuildingEscape.exe!FActorComponentTickFunction::ExecuteTickHelper<<lambda_650757e0dfcbf3946a5bb19e7e28266d> >()
0x00000000979A0D14 BuildingEscape.exe!FActorComponentTickFunction::ExecuteTick()
0x0000000097939346 BuildingEscape.exe!FTickFunctionTask::DoTask()
0x000000009793E7D6 BuildingEscape.exe!TGraphTask::ExecuteTask()
0x00000000972AF994 BuildingEscape.exe!FNamedTaskThread::ProcessTasksNamedThread()
0x00000000972AFC80 BuildingEscape.exe!FNamedTaskThread::ProcessTasksUntilIdle()
0x000000009795769C BuildingEscape.exe!FTickTaskSequencer::ReleaseTickGroup()
0x000000009795D388 BuildingEscape.exe!FTickTaskManager::RunTickGroup()
0x0000000097F2BA6F BuildingEscape.exe!UWorld::RunTickGroup()
0x0000000097F34E68 BuildingEscape.exe!UWorld::Tick()
0x000000009808FFF4 BuildingEscape.exe!UGameEngine::Tick()
0x000000009718D985 BuildingEscape.exe!FEngineLoop::Tick()
0x000000009719D5BF BuildingEscape.exe!GuardedMain()
0x000000009719D62A BuildingEscape.exe!GuardedMainWrapper()
0x00000000971AA466 BuildingEscape.exe!WinMain()
0x000000009A960892 BuildingEscape.exe!__scrt_common_main_seh() [d:\agent_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
0x0000000091123034 KERNEL32.DLL!UnknownFunction
0x0000000092D83691 ntdll.dll!UnknownFunction
0x0000000092D83691 ntdll.dll!UnknownFunction
I ran out of ideas how to fix it. I tried doing it myself but then it crashed, I thought alright I probably have some stupid error in my code but even when I went into the lecture changes from the resources and copied and pasted the code over it still crashes the same!
I tried switching the function to the public in the OpenDoor.h file, I tried restarting the project as shown earlier in the course… Nothing works so I’m coming here.
I join screenshots of my code, maybe I’m blind but right now I’ll take being blind over being stuck.