mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-09 02:15:38 +00:00
Fixed mesh loading bugs introduced by code cleanup
This commit is contained in:
@@ -98,10 +98,10 @@ Sample::~Sample()
|
||||
}
|
||||
}
|
||||
|
||||
void Sample::setTool(SampleTool* tool)
|
||||
void Sample::setTool(SampleTool* newTool)
|
||||
{
|
||||
delete tool;
|
||||
tool = tool;
|
||||
tool = newTool;
|
||||
if (tool)
|
||||
{
|
||||
tool->init(this);
|
||||
|
||||
Reference in New Issue
Block a user