Important note for learners before going on

Hello fellow students, the instruction to add a Mover nullpointer check in the TickComponent method of your TriggerComponent.cpp file was mistakenly left out (they even have the code in their next lecture)

More specifically, add this to your code before further lessons:

    // Other code from TriggerComponent.cpp above

    Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
    
    if (Mover == nullptr)
    {
        return;
    }

    // the rest of your implementation for TriggerComponent.cpp below

This is important because without checking whether the Mover dependency injection was successful or not, the engine will crash at very random times with sparse error logs.

Hope this helps.

P.S. Can the course instructors please add an explicit mention of this code? As of writing this, the Mover nullptr check is shown in the next lecture, but only briefly on screen. Thanks!

13 Likes

Very helpful. Thank You!

Privacy & Terms