Skip to content

Commit 1d705df

Browse files
committed
Resolve errors
Resolve linker errors for CNickGen static members and add missing array include
1 parent a416613 commit 1d705df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Client/core/CNickGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "time.h"
1212

1313
// These words are of a maximum length of 10 characters, capitalized, and stripped of whitespace
14-
const std::array<const char*, NICKGEN_NUM_ADJECTIVES> m_szAdjectives = {
14+
const std::array<const char*, NICKGEN_NUM_ADJECTIVES> CNickGen::m_szAdjectives = {
1515
"Aback", "Abaft", "Abandoned", "Abashed", "Aberrant", "Abhorrent", "Abiding", "Abject", "Ablaze", "Able", "Abnormal",
1616
"Aboard", "Aboriginal", "Abortive", "Abounding", "Abrasive", "Abrupt", "Absent", "Absorbed", "Absorbing", "Abstracted", "Absurd",
1717
"Abundant", "Abusive", "Acceptable", "Accessible", "Accidental", "Accurate", "Acid", "Acidic", "Acoustic", "Acrid", "Actually",
@@ -109,7 +109,7 @@ const std::array<const char*, NICKGEN_NUM_ADJECTIVES> m_szAdjectives = {
109109
"Worried", "Worthless", "Wrathful", "Wretched", "Wrong", "Wry",
110110
};
111111

112-
const std::array<const char*, NICKGEN_NUM_NOUNS> m_szNouns = {
112+
const std::array<const char*, NICKGEN_NUM_NOUNS> CNickGen::m_szNouns = {
113113
"Aardvark", "Buffalo", "Alligator", "Ant", "Anteater", "Antelope", "Ape", "Armadillo", "Donkey", "Baboon", "Badger",
114114
"Barracuda", "Bat", "Bear", "Beaver", "Bee", "Bison", "Boar", "Bush", "Butterfly", "Camel", "Calf",
115115
"Cat", "Kitten", "Cattle", "Chamois", "Cheetah", "Chicken", "Chick", "Chimpanzee", "Infant", "Empress", "Troop",

Client/core/CNickGen.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*****************************************************************************/
99

1010
#pragma once
11+
#include <array>
1112

1213
#define NICKGEN_NUM_ADJECTIVES 1040
1314
#define NICKGEN_NUM_NOUNS 921

0 commit comments

Comments
 (0)