mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-22 04:11:22 +01:00
Not using literal values for Gender
This commit is contained in:
parent
a2a0f99b14
commit
1496d77866
@ -347,13 +347,13 @@ class Sws extends SwsModel
|
||||
$length = 1;
|
||||
switch (self::ReadData('Int', substr($swscontents, $offset, $length))) {
|
||||
case 1:
|
||||
$gender = 'M';
|
||||
$gender = Gender::Male;
|
||||
break;
|
||||
case 2:
|
||||
$gender = "F";
|
||||
$gender = Gender::Female;
|
||||
break;
|
||||
default:
|
||||
$gender = "X";
|
||||
$gender = Gender::Neutral;
|
||||
break;
|
||||
}
|
||||
$player->setGender(new Gender($gender));
|
||||
|
Loading…
Reference in New Issue
Block a user