From 8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Aug 2007 20:40:33 +0000 Subject: (svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles. --- src/cargopacket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cargopacket.h') diff --git a/src/cargopacket.h b/src/cargopacket.h index 2dacb7bc2..3fde1bacc 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -43,7 +43,7 @@ struct CargoPacket : PoolItem { * Is this a valid cargo packet ? * @return true if and only it is valid */ - bool IsValid() const { return this->count != 0; } + inline bool IsValid() const { return this->count != 0; } /** * Checks whether the cargo packet is from (exactly) the same source -- cgit v1.2.3-54-g00ecf