Explorar el Código

Update src/map/pc.cpp

Co-authored-by: munkrej <schmunk@posteo.de>
Aleos hace 2 años
padre
commit
03dfba0dd8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/map/pc.cpp

+ 2 - 1
src/map/pc.cpp

@@ -3390,7 +3390,8 @@ void pc_delautobonus(map_session_data &sd, std::vector<std::shared_ptr<s_autobon
 			}
 		} else {
 			// Not all required items equipped anymore
-			restore = false;
+			it = bonus.erase(it);
+			continue;
 		}
 
 		if( restore ){