From b5510d4cf9cabd592043bd8d4ad9c2d3c8864a5d Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 8 Apr 2011 11:22:44 +0200 Subject: fixed possible client crash with extra projectiles on disconnect --- src/game/client/components/particles.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/client/components/particles.cpp') diff --git a/src/game/client/components/particles.cpp b/src/game/client/components/particles.cpp index ba6b13c7..25c9dd36 100644 --- a/src/game/client/components/particles.cpp +++ b/src/game/client/components/particles.cpp @@ -129,6 +129,9 @@ void CParticles::Update(float TimePassed) void CParticles::OnRender() { + if(Client()->State() < IClient::STATE_ONLINE) + return; + static int64 LastTime = 0; int64 t = time_get(); -- cgit 1.4.1