mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
WINTERMUTE: Pass valid arguments to getLines
This commit is contained in:
parent
a120aa8559
commit
c94f8151e8
@ -385,7 +385,7 @@ Error Console::printSource(int n) {
|
|||||||
delete error;
|
delete error;
|
||||||
|
|
||||||
if (err.getErrorLevel() == SUCCESS || err.getErrorLevel() == WARNING) {
|
if (err.getErrorLevel() == SUCCESS || err.getErrorLevel() == WARNING) {
|
||||||
Common::Array<ListingLine> lines = listing->getLines(CONTROLLER->getLastLine(), n);
|
Common::Array<ListingLine> lines = listing->getLines(CONTROLLER->getLastLine(), n/2, n/2);
|
||||||
for (uint i = 0; i < lines.size(); i++) {
|
for (uint i = 0; i < lines.size(); i++) {
|
||||||
if (lines[i].number == CONTROLLER->getLastLine()) {
|
if (lines[i].number == CONTROLLER->getLastLine()) {
|
||||||
debugPrintf(" -> ");
|
debugPrintf(" -> ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user