]> git.tdb.fi Git - libs/gl.git/commitdiff
Clear offset of Bufferable when removing from buffer
authorMikko Rasa <tdb@tdb.fi>
Mon, 25 Jan 2021 02:15:33 +0000 (04:15 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 25 Jan 2021 02:15:33 +0000 (04:15 +0200)
It shouldn't really matter but just in case.

source/bufferable.cpp

index 4544c508cb072c4e47e02c357aab452d41e2a754..d07f57cc4e430f5d337c67cd7ebd47917eb3a456 100644 (file)
@@ -88,6 +88,7 @@ void Bufferable::unlink_from_buffer()
        prev_in_buffer = 0;
        next_in_buffer = 0;
        buffer = 0;
+       offset = 0;
 }
 
 void Bufferable::update_offset()