Lesson 89-The line of Code "PressurePlate->GetOverlappingActors(OUT OverlappingActors);" cause my game to crash

Hello, I’m having a problem with the code on lesson 89-90.
The following line of code
PressurePlate->GetOverlappingActors(OUT OverlappingActors);
cause my game to crash and I don’t see a solution for this problem. Can someone help me figure it out?

I’ll also link my OpenDoor.cpp code and OpenDoor.h

OpenDoor.cpp: https://pastebin.com/skELVd06
OpenDoor.h: https://pastebin.com/yh0Vt2Df

I found the error, it wasn’t in the code. For some reason the OpenDoor component of the Door lost the association with the pressure plate and it was set to none. That caused the programm to crash

Privacy & Terms