Fixed build issues with clang

This commit is contained in:
mathusummut
2018-06-10 23:48:39 +02:00
parent 46dd197910
commit 73d28db062
3 changed files with 3 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ namespace Glest {
void
Program::ShowMessageProgramState::mouseMove(int x, int y,
const MouseState &
const MouseState *
mouseState) {
mouseX = x;
mouseY = y;

View File

@@ -263,7 +263,7 @@ namespace Glest {
virtual void
mouseDownLeft(int x, int y);
virtual void
mouseMove(int x, int y, const MouseState & mouseState);
mouseMove(int x, int y, const MouseState * mouseState);
virtual void
keyPress(SDL_KeyboardEvent c);
virtual void

View File

@@ -2726,7 +2726,7 @@ namespace Glest {
// or when the unit is selected and right clicked to a position.
if (commandType == NULL) {
CommandClass command = ccMove; //default command
if (this->getType()->isOfClass(ucWarrior) && (targetUnit == nullptr || this->getTeam() != targetUnit->getTeam()))
if (this->getType()->isOfClass(ucWarrior) && (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()))
command = ccAttack;
commandType = type->getFirstCtOfClass(command);