Skip to content

Commit b4aa8ce

Browse files
committed
Fixed an issue where if a player requested a vendor to train a skill that contained spaces, as in "arms lore", the player's skill would not gain. Thanks to Strobelartesao for finding this bug.
1 parent c16d839 commit b4aa8ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/mobiles/npcs/include/trainSkill.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include ":npcs:skillLists";
2+
include "include/string";
23

34
var cost;
45

@@ -116,6 +117,7 @@ function TrainSkill(me, who, item)
116117
CreateItemInContainer( who.backpack, 0xEED, excess_gold );
117118
gold_received := gold_received - excess_gold;
118119
endif
120+
attribute_name := RemoveSpaces(attribute_name, CLR_ALL_SPACES);
119121
SetAttributeBaseValue( who, attribute_name, gold_received );
120122
PrintTextAbovePrivate(me, "Let me show you how it's done.", who);
121123
DoRecalcVitals(who);

0 commit comments

Comments
 (0)