Explorar o código

Follow up to 83c093f

Fixes #8909

Thanks to @thanna, @hendra814, @coookie1010 and @06jay
Lemongrass3110 hai 4 meses
pai
achega
0486cf14c8
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/map/script.cpp

+ 6 - 2
src/map/script.cpp

@@ -15626,8 +15626,12 @@ BUILDIN_FUNC(nude)
 int32 atcommand_sub(struct script_state* st,int32 type) {
 	map_session_data* sd;
 
-	if( st->rid != 0 && !script_rid2sd( sd ) ){
-		return SCRIPT_CMD_FAILURE;
+	if( st->rid != 0 ){
+		if( !script_rid2sd( sd ) ){
+			return SCRIPT_CMD_FAILURE;
+		}
+
+		// Use the attached character
 	}else{
 		if( st->oid != 0 ){
 			block_list* bl = map_id2bl( st->oid );