X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDemoBufferObject.c;h=3a0741266043ae50f7e9627e20083a95706d4851;hb=2d62255a9cc1edc3692c2597cf338ce50744da96;hp=f3dbcc30357c61e99e27691f65998216cbe8db90;hpb=c35ed5e69718416c4b428f1ffeddf31105e933b2;p=rocksndiamonds.git diff --git a/src/game_sp/DemoBufferObject.c b/src/game_sp/DemoBufferObject.c index f3dbcc30..3a074126 100644 --- a/src/game_sp/DemoBufferObject.c +++ b/src/game_sp/DemoBufferObject.c @@ -80,7 +80,7 @@ long DemoBufferObject_Get_Size() { long Size; - Size = (nSize < 1 ? 0 : 0); + Size = (nSize < 1 ? 0 : nSize); if (! IS_NOTHING(&SubBuffer, sizeof(SubBuffer))) Size = Size + SubBuffer.Size;