Skip to content

Commit

Permalink
Fix GetUniqueMonstPosition()
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Oct 8, 2024
1 parent 06528a5 commit 8dc6e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Point GetUniqueMonstPosition(UniqueMonsterType uniqindex)
Point position;
int count = 0;
do {
Point position = Point { GenerateRnd(80), GenerateRnd(80) } + Displacement { 16, 16 };
position = Point { GenerateRnd(80), GenerateRnd(80) } + Displacement { 16, 16 };
int count2 = 0;
for (int x = position.x - 3; x < position.x + 3; x++) {
for (int y = position.y - 3; y < position.y + 3; y++) {
Expand Down

0 comments on commit 8dc6e05

Please sign in to comment.