Ver Fonte

Disable SetServerEquipmentAppearances on windows. Temporary crash fix.

devn00b há 1 ano atrás
pai
commit
06d32e556f
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      EQ2/source/LoginServer/LoginDatabase.cpp

+ 9 - 0
EQ2/source/LoginServer/LoginDatabase.cpp

@@ -137,6 +137,15 @@ int32 LoginDatabase::GetLoginCharacterIDFromWorldCharID(int32 server_id, int32 c
 
 void LoginDatabase::SetServerEquipmentAppearances(int32 server_id, map<int32, LoginEquipmentUpdate> equip_updates)
 {
+#ifdef WIN32
+	//devn00b: temp fix for crashing on windows.
+	//Exception thrown: read access violation.
+	//mysql->** methods** was nullptr.occurred
+	//0x0000000002981a20 "replace into login_equipment (login_characters_id, equip_type, red, green, blue, highlight_red, highlight_green, highlight_blue, slot) values (9003, 4043, 255, 255, 255, 255, 255, 255, 0)"
+
+	return;
+#endif
+  
 	if(equip_updates.size() > 0)
 	{