This fixes the compilation error from a couple of commits ago.
BUGFIX: GetEmptySlot() now returns the correct slot ID.