GameObjectAI Fix Crash

Signed-off-by: Salja <salja8840@gmail.com>