From bdfcbb2f0edee2679bfe588df55e9f99bd837510 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 23 Jun 2025 06:34:16 -0300 Subject: `receiving.cc` --- src/operate.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/operate.cc') 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; } -- cgit v1.2.3