From d94364f2e3201ba59b0ceea149c365ed91e2fecc Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Fri, 9 May 2014 22:14:28 -0700 Subject: [PATCH] int to uint8 conversions fix --- zone/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/command.cpp b/zone/command.cpp index 7afff95ca..3e9e2184c 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -2643,7 +2643,7 @@ void command_makepet(Client *c, const Seperator *sep) void command_level(Client *c, const Seperator *sep) { - uint16 level = atoi(sep->arg[1]); + uint8 level = atoi(sep->arg[1]); if ((level <= 0) || ((level > RuleI(Character, MaxLevel)) && (c->Admin() < commandLevelAboveCap))) { c->Message(0, "Error: #Level: Invalid Level"); @@ -2699,7 +2699,7 @@ void command_spawn(Client *c, const Seperator *sep) void command_texture(Client *c, const Seperator *sep) { - uint16 texture; + uint8 texture; if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 255) { texture = atoi(sep->arg[1]); uint8 helm = 0xFF;