Index: src/map/clif.c
===================================================================
--- src/map/clif.c (revision 17312)
+++ src/map/clif.c (working copy)
@@ -3282,15 +3282,16 @@
/// 2 = failure due to low level
void clif_equipitemack(struct map_session_data *sd,int n,int pos,int ok)
{
- int fd,header,offs=0;
+ int fd,header,offs=0,succes;
#if PACKETVER < 20110824
header = 0xaa;
+ succes = (ok==1);
#elif PACKETVER < 20120925
header = 0x8d0;
- ok = ok ? 0:1;
+ succes = ok ? 0:1;
#else
header = 0x999;
- ok = ok ? 0:1;
+ succes = ok ? 0:1;
#endif
nullpo_retv(sd);
@@ -3305,13 +3306,13 @@
WFIFOW(fd,offs+4)=(int)pos;
#endif
#if PACKETVER < 20100629
- WFIFOB(fd,offs+6)=ok;
+ WFIFOB(fd,offs+6)=succes;
#else
if (ok && sd->inventory_data[n]->equip&EQP_VISIBLE)
WFIFOW(fd,offs+6)=sd->inventory_data[n]->look;
else
WFIFOW(fd,offs+6)=0;
- WFIFOB(fd,offs+8)=ok;
+ WFIFOB(fd,offs+8)=succes;
#endif
WFIFOSET(fd,packet_len(header));
}
Index: src/char/int_storage.c
===================================================================
--- src/char/int_storage.c (revision 17312)
+++ src/char/int_storage.c (working copy)
@@ -141,7 +141,7 @@
return;
}
-// q?f[^?
+// Delete char storage
int inter_storage_delete(int account_id)
{
if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `account_id`='%d'", storage_db, account_id) )
Index: src/char/char.c
===================================================================
--- src/char/char.c (revision 17312)
+++ src/char/char.c (working copy)
@@ -1673,8 +1673,7 @@
Sql_GetData(sql_handle, 6, &data, NULL); partner_id = atoi(data);
Sql_GetData(sql_handle, 7, &data, NULL); father_id = atoi(data);
Sql_GetData(sql_handle, 8, &data, NULL); mother_id = atoi(data);
- Sql_GetData(sql_handle, 9, &data, NULL);
- elemental_id = atoi(data);
+ Sql_GetData(sql_handle, 9, &data, NULL); elemental_id = atoi(data);
Sql_EscapeStringLen(sql_handle, esc_name, name, min(len, NAME_LENGTH));
Sql_FreeResult(sql_handle);