summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/roster/reply/rst_add_char.erl1
-rw-r--r--src/roster/struct/rst_roster.erl2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/roster/reply/rst_add_char.erl b/src/roster/reply/rst_add_char.erl
index 908ce3e..0f360ed 100644
--- a/src/roster/reply/rst_add_char.erl
+++ b/src/roster/reply/rst_add_char.erl
@@ -30,6 +30,7 @@ generate (IX, Character) ->
{<<"msg">>, <<"add_char">>},
{<<"ix">>, IX},
{<<"nam">>, rst_character:get_name(Character)},
+ {<<"prt">>, rst_character:get_portrait_id(Character)},
{<<"awp">>, ActiveWeapon},
{<<"swp">>, SecondaryWeapon},
{<<"ar">>, rst_character:get_armor_id(Character)},
diff --git a/src/roster/struct/rst_roster.erl b/src/roster/struct/rst_roster.erl
index 7841fb4..457edbc 100644
--- a/src/roster/struct/rst_roster.erl
+++ b/src/roster/struct/rst_roster.erl
@@ -117,5 +117,5 @@ new (Owner) ->
#roster
{
owner = Owner,
- characters = array:new()
+ characters = array:from_list([rst_character:new()])
}.