summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/functions/headstyles.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/functions/headstyles.txt b/world/map/npc/functions/headstyles.txt
index 072a9fbf..989bef83 100644
--- a/world/map/npc/functions/headstyles.txt
+++ b/world/map/npc/functions/headstyles.txt
@@ -5,13 +5,13 @@ function|script|getHeadStyles|,
{
set @HairStyles$, 0;
set @HairColors$, 0;
+ set @BaseClass, 0; // this is the default class
cleararray @HairStyles$, "", getarraysize(@HairStyles$);
cleararray @HairColors$, "", getarraysize(@HairColors$);
cleararray @ValidClasses, "", getarraysize(@ValidClasses);
setarray @ValidClasses, 0; // add new classes here
set @loop, 0;
- if(Class != 0) goto L_LoopValid;
- goto L_ValidClass;
+ goto L_LoopValid;
L_LoopValid:
if(@ValidClasses[@loop] == Class) goto L_ValidClass;
@@ -20,7 +20,7 @@ function|script|getHeadStyles|,
goto L_LoopValid;
L_FixClass:
- set Class, 0;
+ set Class, @BaseClass;
goto L_ValidClass;
L_ValidClass: