Compile error fixed in api::distribute_xp()