Skip to content

Commit

Permalink
Fix NULL misuses
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 6, 2016
1 parent b095d43 commit 9e1975b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/actint/aci_scr.cpp
Expand Up @@ -138,8 +138,8 @@ aciScreenScroller::aciScreenScroller(void)

ActiveSX = ActiveSY = 0;

ScrResSX = ScrResSY = NULL;
sResSX = sResSY = NULL;
ScrResSX = ScrResSY = 0;
sResSX = sResSY = 0;
}

aciScreenScroller::~aciScreenScroller(void)
Expand Down
8 changes: 4 additions & 4 deletions src/iscreen/iscr_fnc.cpp
Expand Up @@ -1041,7 +1041,7 @@ void iMS_LeftPress(int fl, int x, int y)
aciML_ToolzerON = 1;

if(actIntLog)
aMS_LeftPress(NULL,x,y);
aMS_LeftPress(0,x,y);

XGR_MouseSetSeq(0,1,XGM_PLAY_ONCE,1);
}
Expand All @@ -1055,7 +1055,7 @@ void iMS_LeftUnpress(int fl, int x, int y)
iMouseLPressFlag = 0;

if(actIntLog)
aMS_LeftUnpress(NULL,x,y);
aMS_LeftUnpress(0,x,y);

XGR_MouseSetSeq(XGR_MouseCurFrame,XGR_MouseNumFrames - 1,XGM_PLAY_ONCE,1);
}
Expand All @@ -1069,7 +1069,7 @@ void iMS_RightPress(int fl, int x, int y)
iMouseRPressFlag = 1;

if(actIntLog)
aMS_RightPress(NULL,x,y);
aMS_RightPress(0,x,y);

XGR_MouseSetSeq(0,1,XGM_PLAY_ONCE,1);
}
Expand All @@ -1082,7 +1082,7 @@ void iMS_RightUnpress(int fl, int x, int y)
iMouseRPressFlag = 0;

if(actIntLog)
aMS_RightUnpress(NULL,x,y);
aMS_RightUnpress(0,x,y);

XGR_MouseSetSeq(XGR_MouseCurFrame,XGR_MouseNumFrames - 1,XGM_PLAY_ONCE,1);
}
Expand Down

0 comments on commit 9e1975b

Please sign in to comment.