When the player goes near the customers (at the top left part of the kitchen), the game crashes.
How To Reproduce
Steps to reproduce the behaviour:
Open the game
Press the 'Start' button
Walk over to the top-left corner of the screen where the spawned customers are
Game crashes
Expected Behaviour
The game should not crash
Temporary Fix
It seems like it was an issue with the TouchAttackComponent. I stopped it from crashing by checking that attacker is not null in a function. I am not sure why customers have this component as there is no combat in this game.
Description
When the player goes near the customers (at the top left part of the kitchen), the game crashes.
How To Reproduce
Steps to reproduce the behaviour:
Expected Behaviour
The game should not crash
Temporary Fix
It seems like it was an issue with the TouchAttackComponent. I stopped it from crashing by checking that attacker is not null in a function. I am not sure why customers have this component as there is no combat in this game.