Skip to content

Commit

Permalink
Add more non-kitten items and consts
Browse files Browse the repository at this point in the history
  • Loading branch information
noncombatant committed May 14, 2023
1 parent 0a9a81b commit 479d642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robotfindskitten.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static struct {
size_t item_count;
size_t message_count;
ScreenObject items[MessageCount];
char** messages;
const char** messages;
} GameState;

// Special indices in the GameState.items array.
Expand All @@ -125,7 +125,7 @@ static void InitializeMessages(void) {
for (size_t i = Bogus; i < (GameState.message_count - 1); ++i) {
const size_t j = i + ((size_t)random() % (GameState.message_count - i));
if (i != j) {
char* temp = GameState.messages[i];
const char* temp = GameState.messages[i];
GameState.messages[i] = GameState.messages[j];
GameState.messages[j] = temp;
}
Expand Down

0 comments on commit 479d642

Please sign in to comment.