aboutsummaryrefslogtreecommitdiff
path: root/src/operate.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-23 06:34:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-23 06:34:16 -0300
commitbdfcbb2f0edee2679bfe588df55e9f99bd837510 (patch)
tree4aea2b1039ea4988debd054c024eefe9c3021dc4 /src/operate.cc
parentc4dfe97e95846b43c578b3be35d0ef69f9b50e94 (diff)
downloadgame-bdfcbb2f0edee2679bfe588df55e9f99bd837510.tar.gz
game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.zip
`receiving.cc`
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;
}