diff --git a/xs/src/libslic3r/GCode/CoolingBuffer.cpp b/xs/src/libslic3r/GCode/CoolingBuffer.cpp index 84df9cfd3..e976c9f46 100644 --- a/xs/src/libslic3r/GCode/CoolingBuffer.cpp +++ b/xs/src/libslic3r/GCode/CoolingBuffer.cpp @@ -68,7 +68,7 @@ CoolingBuffer::flush() if (gg.config.cooling) { #ifdef SLIC3R_DEBUG - printf("Layer %zu estimated printing time: %f seconds\n", layer_id, elapsed); + printf("Layer %zu estimated printing time: %f seconds\n", this->_layer_id, elapsed); #endif if (elapsed < (float)gg.config.slowdown_below_layer_time) {