Don't call getNextItemPtr(), when the result is simply ignored.
svn-id: r27305
This commit is contained in:
parent
ddd1869b13
commit
79c30552ca
2 changed files with 5 additions and 7 deletions
|
@ -391,10 +391,8 @@ int AGOSEngine::wordMatch(Item *item, int16 a, int16 n) {
|
|||
}
|
||||
|
||||
Item *AGOSEngine::derefItem(uint item) {
|
||||
if (item >= _itemArraySize) {
|
||||
debug(1, "derefItem: invalid item %d", item);
|
||||
return 0;
|
||||
}
|
||||
if (item >= _itemArraySize)
|
||||
error("derefItem: invalid item %d", item);
|
||||
return _itemArrayPtr[item];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue