Bug fix: segfault if attacking 0 enemies