Selaa lähdekoodia

Fixed online_char_db (#7539)

Added a missing map entry assignment from an invalid DBMap ensure conversion.

Fixes #7538

Thanks to @MaouDaiou and @zdurexz
Lemongrass3110 2 vuotta sitten
vanhempi
commit
913519ed50
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/char/char.cpp

+ 1 - 0
src/char/char.cpp

@@ -98,6 +98,7 @@ void char_set_charselect(uint32 account_id) {
 
 	if( character == nullptr ){
 		character = std::make_shared<struct online_char_data>( account_id );
+		char_get_onlinedb()[account_id] = character;
 	}
 
 	if( character->server > -1 )