fix: Fixes door monster LOS exploit & AOS House Gump NPE (#2091)

This commit is contained in:
mark1145 2025-01-27 18:04:01 +11:00 committed by GitHub
parent f241a9dec0
commit c0eb6c81fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 66 additions and 64 deletions

View file

@ -111,10 +111,10 @@ namespace Server.Gumps
AddImage(10, 10, 100);
if (m_House.Sign != null)
{
var lines = m_House.Sign.GetName().Wrap(10, 6);
var lines = m_House.Sign?.GetName().Wrap(10, 6);
if (lines != null)
{
for (int i = 0, y = (114 - lines.Count * 14) / 2; i < lines.Count; ++i, y += 14)
{
var s = lines[i];