fixed memory access issue in MCLDA.cpp

also thanks sonney2k!