mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-27 19:14:02 -05:00
GPCM: Fix nil pointer dereference in bestie message
This commit is contained in:
@@ -395,7 +395,7 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
|
||||
if toSession, ok = sessions[uint32(toProfileId)]; !ok || !toSession.LoggedIn {
|
||||
logging.Error(g.ModuleName, "Destination", aurora.Cyan(toProfileId), "is not online")
|
||||
// g.replyError(ErrMessageFriendOffline)
|
||||
sendMessageToSession("1", toSession.User.ProfileId, g, resvDenyMsg)
|
||||
sendMessageToSession("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
|
||||
|
||||
if !toSession.DeviceAuthenticated {
|
||||
logging.Error(g.ModuleName, "Destination", aurora.Cyan(toProfileId), "is not device authenticated")
|
||||
sendMessageToSession("1", toSession.User.ProfileId, g, resvDenyMsg)
|
||||
sendMessageToSession("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user