mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51: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;
|
||||
|
||||
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++) {
|
||||
if (lines[i].number == CONTROLLER->getLastLine()) {
|
||||
debugPrintf(" -> ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user