From fcc8dfd6939134320b2c55f0c1abd8bd67025dd0 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sun, 26 Feb 2023 17:29:00 -0500
Subject: [PATCH] Make "Give her a random old Southern-style surname" correctly
 fetch a relevant surname instead of crashing.

---
 src/npc/generate/newChildIntro.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/npc/generate/newChildIntro.js b/src/npc/generate/newChildIntro.js
index 3af74e4f817..99143b6cdde 100644
--- a/src/npc/generate/newChildIntro.js
+++ b/src/npc/generate/newChildIntro.js
@@ -377,7 +377,7 @@ App.UI.newChildIntro = function(slave) {
 			App.UI.DOM.link(
 				`Give ${him} a random old Southern-style surname`,
 				() => {
-					slave.slaveSurname = App.Data.misc.antebellumRevivalistSlaveSurnames.random();
+					slave.slaveSurname = App.Data.misc.antebellumSlaveSurnames.random();
 					slave.birthSurname = slave.slaveSurname;
 					jQuery(surnaming).empty().append(`${V.assistant.name} registers the new ${girl}'s surname as "${slave.slaveSurname}" in your registry.`);
 					jQuery(newName).empty().append(SlaveFullName(slave));
-- 
GitLab