summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-02 17:08:34 +0200
committerSimon Rettberg2018-08-02 17:08:34 +0200
commit258d3d834130af760e3df5567d4100a879f6541c (patch)
treeca7fe33742e8efcb4d3ce620df16ed992458f6ff /src
parent[client] Improve translations (diff)
downloadpvs2-258d3d834130af760e3df5567d4100a879f6541c.tar.gz
pvs2-258d3d834130af760e3df5567d4100a879f6541c.tar.xz
pvs2-258d3d834130af760e3df5567d4100a879f6541c.zip
[server] Fix client frame placement bug
Bug was introduced in commit:9ba63d1460 through missing parenthesis in macro.
Diffstat (limited to 'src')
-rw-r--r--src/server/mainwindow/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index e50efa7..15aabd4 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -258,7 +258,7 @@ QPoint MainWindow::closestFreeSlot(QPoint preferredPixels, ConnectionFrame* toIg
}
}
const QSize& clientSize = serverApp->getCurrentRoom()->clientSize;
-#define GRID(X,Y) (grid[X * _tilesX + Y])
+#define GRID(X,Y) (grid[((X) * _tilesX) + (Y)])
bool *grid = new bool[_tilesX * _tilesY];
memset(grid, 0, sizeof(bool) * size_t(_tilesX * _tilesY)); /* set everything to false */