07-02-2015, 04:45 PM
Your code is already checking for empty cItems instance. I'm not too sure about the last param to SpawnItemPickups, try setting it to zero for a quick test. Other than that, no idea what could be wrong, seems alright to me.