浏览代码

Fixed pin code changing (#8438)

Fixes #8430

Thanks to @gmragnarok
Lemongrass3110 11 月之前
父节点
当前提交
44fbe3940d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/char/char_clif.cpp

+ 3 - 0
src/char/char_clif.cpp

@@ -290,6 +290,7 @@ int chclif_parse_pincode_change( int fd, struct char_session_data* sd ){
 			chlogif_pincode_notifyLoginPinUpdate( sd->account_id, newpin );
 			strncpy(sd->pincode, newpin, sizeof(newpin));
 			ShowInfo("Pincode changed for AID: %d\n", sd->account_id);
+			sd->pincode_correct = true;
 
 			chclif_pincode_sendstate( fd, sd, PINCODE_PASSED );
 		}else{
@@ -1584,6 +1585,8 @@ int chclif_parse(int fd) {
 				case 0x187:
 				// Checks the entered pin
 				case 0x8b8:
+				// Request PIN change
+				case 0x8be:
 				// Request for PIN window
 				case 0x8c5:
 				// Request character list