aboutsummaryrefslogtreecommitdiff
path: root/src/operate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operate.cc')
-rw-r--r--src/operate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operate.cc b/src/operate.cc
index e019d36..6fb7f20 100644
--- a/src/operate.cc
+++ b/src/operate.cc
@@ -2634,8 +2634,8 @@ void EditText(uint32 CreatureID, Object Obj, const char *Text){
int TextLength = (int)strlen(Text);
int MaxLength = (ObjType.getFlag(WRITE)
- ? ObjType.getAttribute(MAXLENGTH)
- : ObjType.getAttribute(MAXLENGTHONCE));
+ ? (int)ObjType.getAttribute(MAXLENGTH)
+ : (int)ObjType.getAttribute(MAXLENGTHONCE));
if(TextLength >= MaxLength){
throw TOOLONG;
}