Skip to content

Commit 9e1975b

Browse files
committed
Fix NULL misuses
1 parent b095d43 commit 9e1975b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: src/actint/aci_scr.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ aciScreenScroller::aciScreenScroller(void)
138138

139139
ActiveSX = ActiveSY = 0;
140140

141-
ScrResSX = ScrResSY = NULL;
142-
sResSX = sResSY = NULL;
141+
ScrResSX = ScrResSY = 0;
142+
sResSX = sResSY = 0;
143143
}
144144

145145
aciScreenScroller::~aciScreenScroller(void)

Diff for: src/iscreen/iscr_fnc.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ void iMS_LeftPress(int fl, int x, int y)
10411041
aciML_ToolzerON = 1;
10421042

10431043
if(actIntLog)
1044-
aMS_LeftPress(NULL,x,y);
1044+
aMS_LeftPress(0,x,y);
10451045

10461046
XGR_MouseSetSeq(0,1,XGM_PLAY_ONCE,1);
10471047
}
@@ -1055,7 +1055,7 @@ void iMS_LeftUnpress(int fl, int x, int y)
10551055
iMouseLPressFlag = 0;
10561056

10571057
if(actIntLog)
1058-
aMS_LeftUnpress(NULL,x,y);
1058+
aMS_LeftUnpress(0,x,y);
10591059

10601060
XGR_MouseSetSeq(XGR_MouseCurFrame,XGR_MouseNumFrames - 1,XGM_PLAY_ONCE,1);
10611061
}
@@ -1069,7 +1069,7 @@ void iMS_RightPress(int fl, int x, int y)
10691069
iMouseRPressFlag = 1;
10701070

10711071
if(actIntLog)
1072-
aMS_RightPress(NULL,x,y);
1072+
aMS_RightPress(0,x,y);
10731073

10741074
XGR_MouseSetSeq(0,1,XGM_PLAY_ONCE,1);
10751075
}
@@ -1082,7 +1082,7 @@ void iMS_RightUnpress(int fl, int x, int y)
10821082
iMouseRPressFlag = 0;
10831083

10841084
if(actIntLog)
1085-
aMS_RightUnpress(NULL,x,y);
1085+
aMS_RightUnpress(0,x,y);
10861086

10871087
XGR_MouseSetSeq(XGR_MouseCurFrame,XGR_MouseNumFrames - 1,XGM_PLAY_ONCE,1);
10881088
}

0 commit comments

Comments
 (0)