Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
postm1 committed May 21, 2024
1 parent 0eced4e commit 7f5a38a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SpacerNET_Union/Spacer_Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,14 +838,14 @@ namespace GOTHIC_ENGINE {
for (int j = i - 1; j >= 0; j--) {
void* upper = lower;
lower = d(j);
if ((*compare)(upper, lower) < 0) { // ok. Ist im Moment BubbleSort. Was solls...
if ((*compare)(upper, lower) < 0) {
swaps++;
memcpy(&swapplace, upper, size);
memcpy(upper, lower, size);
memcpy(lower, &swapplace, size);
}
else
j = 0; // hier kann man die innere Schleife schon abbrechen.
j = 0;
}
if (falltoqs && swaps > 5 * i + 5) {
qsort(data, num, size, compare);
Expand Down Expand Up @@ -889,7 +889,7 @@ namespace GOTHIC_ENGINE {

CString monsterName = sym->name;

// íàéäåíî
// found
if (!foundPair.IsNull())
{
foundPair.GetValue()->monsters.Insert(monsterName);
Expand Down

0 comments on commit 7f5a38a

Please sign in to comment.