Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary. svn-id: r46941
This commit is contained in:
parent
910ffb53a0
commit
72eb9ec9ea
62 changed files with 117 additions and 210 deletions
|
@ -150,7 +150,7 @@ bool RoomExitData::insideRect(int16 xp, int16 yp) {
|
|||
|
||||
RoomExitData *RoomExitList::checkExits(int16 xp, int16 yp) {
|
||||
iterator i;
|
||||
for (i = begin(); i != end(); i++) {
|
||||
for (i = begin(); i != end(); ++i) {
|
||||
RoomExitData *rec = (*i).get();
|
||||
if (rec->insideRect(xp, yp)) {
|
||||
return rec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue