Decided that one of the static_cast was in danger of causing an error, so I altered the other test instead.
This commit is contained in:
parent
8c58b23e77
commit
a6e42d8e5c
|
@ -281,7 +281,7 @@ bool JumpToFrame(int index)
|
||||||
FCEUI_ToggleEmulationPause();
|
FCEUI_ToggleEmulationPause();
|
||||||
|
|
||||||
int i = index>0? index-1:0;
|
int i = index>0? index-1:0;
|
||||||
if (static_cast<unsigned int>(i)>=currMovieData.records.size())
|
if (i>=static_cast<int>(currMovieData.records.size()))
|
||||||
i=currMovieData.records.size()-1;
|
i=currMovieData.records.size()-1;
|
||||||
|
|
||||||
/* Search for an earlier frame, and try warping to the current. */
|
/* Search for an earlier frame, and try warping to the current. */
|
||||||
|
|
Loading…
Reference in New Issue