@ -90,11 +90,13 @@ function wuenscheSpecialChar($user, $specialcharname, $newname = ''){
$rasse = getRaceByName($specialcharname);
$rasse = getRaceByName($specialcharname);
$kaioshin = mysql_fetch_assoc(mysql_query('SELECT char_type,name from chars WHERE (rasse = \''.$specialcharname.'\' or rasse = \''.$rasse['id'].'\' or fusion_rasse = \''.$specialcharname.'\' or fusion_rasse = \''.$rasse['id'].'\') and besitzer='.$user['id']));
$chars = getCharsOfUser($user['id']);
if($kaioshin != null){
foreach($chars as $char) {
displayErrorMessage(NULL,'Der '.$specialcharname.'-Slot ist schon durch '.$kaioshin['name'].' belegt!!',displayHistoryBackLink());
if($char['rasse_a']['id'] == $rasse) {
displayErrorMessage(NULL,'Der '.$specialcharname.'-Slot ist schon durch '.$char['name'].' belegt!!',displayHistoryBackLink());