diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-23 06:34:16 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-23 06:34:16 -0300 |
| commit | bdfcbb2f0edee2679bfe588df55e9f99bd837510 (patch) | |
| tree | 4aea2b1039ea4988debd054c024eefe9c3021dc4 /src/operate.cc | |
| parent | c4dfe97e95846b43c578b3be35d0ef69f9b50e94 (diff) | |
| download | game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.tar.gz game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.zip | |
`receiving.cc`
Diffstat (limited to 'src/operate.cc')
| -rw-r--r-- | src/operate.cc | 4 |
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; } |
