src/engine.h
branchnoai
changeset 9701 d1ac22c62f64
parent 9694 e72987579514
child 9723 eee46cb39750
--- a/src/engine.h	Sun Aug 19 14:04:13 2007 +0000
+++ b/src/engine.h	Sun Sep 02 11:17:33 2007 +0000
@@ -284,7 +284,7 @@
 	EngineRenew(EngineID from = INVALID_ENGINE, EngineID to = INVALID_ENGINE) : from(from), to(to), next(NULL) {}
 	~EngineRenew() { this->from = INVALID_ENGINE; }
 
-	bool IsValid() const { return this->from != INVALID_ENGINE; }
+	inline bool IsValid() const { return this->from != INVALID_ENGINE; }
 };
 
 #define FOR_ALL_ENGINE_RENEWS_FROM(er, start) for (er = GetEngineRenew(start); er != NULL; er = (er->index + 1U < GetEngineRenewPoolSize()) ? GetEngineRenew(er->index + 1U) : NULL) if (er->IsValid())