diff --git a/engines/LuaSandbox/Engine.php b/engines/LuaSandbox/Engine.php index 019c6b41..7eb9c2ee 100644 --- a/engines/LuaSandbox/Engine.php +++ b/engines/LuaSandbox/Engine.php @@ -29,6 +29,7 @@ class Scribunto_LuaSandboxEngine extends Scribunto_LuaEngine { } public function getResourceUsage( $resource ) { + $this->load(); switch ( $resource ) { case self::MEM_PEAK_BYTES: return $this->interpreter->getPeakMemoryUsage();